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
Does c have class?
Why do we need volatile in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
Why main is used in c?
What is the difference between call by value and call by reference in c?
Why isnt any of this standardized in c?
What does %p mean c?
Is null always defined as 0(zero)?
Why malloc is faster than calloc?
Where static variables are stored in c?
What are two dimensional arrays alternatively called as?
State the difference between x3 and x[3].
What header files do I need in order to define the standard library functions I use?
Which is best linux os?
How can I find out the size of a file, prior to reading it in?