any one can help by saying differences between string constants and character constants.. in C........i am confuse......
A character constant is expressed with single quotes ('a'), while a string constant is double quotes ("a"). A string is actually a null-terminated array of characters. So "a" is a two-element array of characters, the first element is the character 'a', the second is the null character.
i understand the differences between string constant and character constants.
After that i have written some code but could not find out the error.........so.......any one please help me........
printf("ASCII value of A=> %d and of a=> %d",a,b);
printf("Character value of a=> %c and of b=> %c",a,b);
printf("The string c => %s",c);
A character constant consits of up to four character enclosed in either single or double quotes.A string constant looks loke a character constant only longer.It is treated as a concatenation of maximum size constants for the conditions.
Bumping two-month-old threads with incorrect (and frankly nonsensical) information. Excellent.