Difference between Pointer and Array in C
Question: Are Pointers and Arrays Same in C Answer: Let’s, first, see their declarations, char name[20]; /* ‘name[20]’ a character array declared */ char alphabet; char *cp = &alphabet; /* ‘cp’ pointer-to-character points to alphabet */ and now analyse them. When compiler comes across the statement char name[20]; it allocates block of 20 bytes of … Read more