Hello Friends,
A string in C is merely an array of characters. The length of a string is determined by a terminating null character:
'\0'
. So, a string with the contents, say, "abc"
has four characters: 'a'
, 'b'
, 'c'
, and the terminating null character.
The terminating null character has the value zero.
In C, string constants (literals) are surrounded by double quotes
("), e.g. "Hello world!" and are compiled to an array of the specified char
values with an additional null terminating character (0-valued) code to
mark the end of the string. The type of a string constant is char *.
String literals may not directly in the source code contain embedded
newlines or other control characters, or some other characters of
special meaning in string.
In Interview these kinds of questions will be asked in written Technical Round.
All type of questions which will be asked in written Technical round based on this topic is uploaded.
If the Download link Appears to be broken or not Available please Comment Here or Type your mail ID.
I will Share The Link Again or Mail You.
Subscribe for Daily updates And Join The Fresher Station Facebook Group.
No comments:
Post a Comment