What is the difference between char a[] = "string"; and
char *p = "string"; ?
Answer Posted / ashok
Pointers are fine a cannot be changed p can be changed.
I have a doubt like is there any difference in memory
allocation.
I heard like a gets its memory in local stack and p gets in
data section.
I don get the clear explanation
| Is This Answer Correct ? | 3 Yes | 4 No |
Post New Answer View All Answers
Explain what would happen to x in this expression: x += 15; (assuming the value of x is 5)
i want to know the procedure of qualcomm for getting a job through offcampus
List the variables are used for writing doubly linked list program.
I need testPalindrome and removeSpace
#include
What is the value of uninitialized variable in c?
How does normalization of huge pointer works?
What does the function toupper() do?
Why is c known as a mother language?
How can I remove the leading spaces from a string?
What is keyword in c?
What are the features of c languages?
explain what is fifo?
Explain void pointer?
Is null a keyword in c?
What is a void pointer? When is a void pointer used?