In C and C++ the single quote is used to identify the single character, and double quotes are
used for string literals
. A string literal “x” is a string, it is containing character ‘x' and a null terminator ‘
Author
Juan Martinez
Juan Martinez is a journalism professor and experienced writer. With a passion for communication and education, Juan has taught students from all over the world. He is an expert in language and writing, and has written for various blogs and magazines.