Computer Science, asked by sameermuhammad7688, 1 year ago

What is an array of pointer and pointer to an array . how do they differ?

Answers

Answered by choudhary21
5
A pointer is a variable that contains the memory address of an int, a char, a float, a function, etc. ... An array of pointers stores an array of addresses that point to different memory locations. And a pointer to an array contains the address that points to the first element of an array.



thnx
Answered by Anonymous
0
Pointers are used for storing address of dynamically allocated arrays and for arrays which are passed as arguments to functions. In other contexts, arrays and pointer are two different things, see the following programs to justify this statement. Assigning any address to an array variable is not allowed.

hope helps ☺️☺️
Similar questions