What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / praveenkumar managuli
char s[]; this allocate memory equal tosize of string
and char *s; holds the address of first charecter
| Is This Answer Correct ? | 23 Yes | 4 No |
Post New Answer View All Answers
What is calloc() function?
What is the difference between call by value and call by reference in c?
What are the different types of control structures?
Tell me what is the purpose of 'register' keyword in c language?
pierrot's divisor program using c or c++ code
How can I direct output to the printer?
What is a structural principle?
What are the three constants used in c?
What is union and structure in c?
Is anything faster than c?
What is the use of the function in c?
What is a keyword?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
Function calling procedures? and their differences? Why should one go for Call by Reference?
How can I prevent another program from modifying part of a file that I am modifying?