C++
Programming and Technical
Programming
Program
Difference between an array of pointers and a pointer to an
array?
Read Solution (Total 1)
-
- array of pointer -> each element of the array is an address to
memory location which holds the data.
Pointer to an array -> is base address of the array.
Ex.
void main()
{
char* test[]={"Name",Address","Ph No"};
return;
} //Here test is an array and every element of this array points to perticular string.
test itself is base address which can be called as pointer to array. - 10 years agoHelpfull: Yes(1) No(0)
C++ Other Question