1.

Difference between single and and doble and in c program

Answer»

What is the DIFFERENCE between single quoted and double quoted declaration of char array?
In C/C++, when a character array is initialized with a double quoted string and array size is not specified, compiler automatically ALLOCATES one extra space for string terminator ‘\0’. For example, following PROGRAM prints 6 as output.



Discussion

No Comment Found

Related InterviewSolutions