What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / man
a[] = "string"; is constant pointer to constant string
char *p = "string"; is pointer to constant string
| Is This Answer Correct ? | 4 Yes | 6 No |
Post New Answer View All Answers
Differentiate between full, complete & perfect binary trees.
What is gets() function?
What are the three constants used in c?
What does *p++ do?
What is volatile variable in c?
What is the translation phases used in c language?
What is structure data type in c?
When should a type cast not be used?
Explain main function in c?
Explain data types & how many data types supported by c?
Write a c program to demonstrate character and string constants?
What is difference between main and void main?
Can you tell me how to check whether a linked list is circular?
Do you have any idea how to compare array with pointer in c?
What is .obj file in c?