C Functions Question:
Download Questions 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.

Download C Functions Interview Questions And Answers PDF

Previous QuestionNext Question
Do you know pointer in C?What are C identifiers?