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
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is static memory allocation? Explain
How do you use a pointer to a function?
Explain enumerated types.
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
I need a sort of an approximate strcmp routine?
what does static variable mean?
What is the meaning of c in c language?
What is a stream in c programming?
Write a program to swap two numbers without using the third variable?
to find the closest pair
How do I copy files?
How can I automatically locate a programs configuration files in the same directory as the executable?
What is this infamous null pointer, anyway?
Explain how can I make sure that my program is the only one accessing a file?