Consider below two statements in C. What is difference between two?
char s = "geeksquiz"; char *s = "geeksquiz";
Below are the key differences:
The statements ‘char s = “geeksquiz”‘ creates a character array which is like any other array and we can do all array operations. The only special thing about this array is, although we have initialized it with 9 elements, its size is 10 (Compiler automatically adds ‘