C Functions Question: Download C Functions PDF

Do you have any idea how to compare array with pointer in C?

Tweet Share WhatsApp

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 PDF Read All 45 C Functions Questions
Previous QuestionNext Question
Do you know pointer in C?What are C identifiers?