C Functions Question: Download C Functions PDF
Do you have any idea how to compare array with pointer in C?
Answer:
The following declarations are NOT the same:
char *p;
char a[20];
The first declaration allocates memory for a pointer; the second allocates memory for 20 characters.
char *p;
char a[20];
The first declaration allocates memory for a pointer; the second allocates memory for 20 characters.
Previous Question | Next Question |
Do you know pointer in C? | What are C identifiers? |