What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / parmjeet kumar
char a[] will alocate the momery size of " string" word in
other hand char *p will alocate the memory size of one
character... or we can not move the data from one location
to another location but with pointer we can do it...
| Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
Explain the red-black trees?
What is #include stdio h?
How arrays can be passed to a user defined function
In C language what is a 'dangling pointer'?
What is the right type to use for boolean values in c?
Can you explain the four storage classes in C?
What is a pointer variable in c language?
What is c system32 taskhostw exe?
What do you understand by normalization of pointers?
Can you write a programmer for FACTORIAL using recursion?
Write a program of advanced Fibonacci series.
Explain the difference between malloc() and calloc() in c?
what are # pragma staments?
How variables are declared in c?
write a program to rearrange the array such way that all even elements should come first and next come odd