a string is a sequence of characters,for example "shahrukh" "struct11"
a string is always enclosed in double quotes " "
whereas in case of characters
a character is just of a single byte and is enclosed within single quotes or you can say that every key on keyboard other then the function keys resembles a character.
Comments
a string is a sequence of characters,for example "shahrukh" "struct11"
a string is always enclosed in double quotes " "
whereas in case of characters
a character is just of a single byte and is enclosed within single quotes or you can say that every key on keyboard other then the function keys resembles a character.