Call Us : +91-8376986802 (Viber, WhatsApp)

Compare array with pointer.



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.

Leave a Reply