This is a discussion on Programming in C within the C and C++ forums, part of the Programming Talk category; what is the difference between array of pointers and pointer in array?...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
hi there!!
int a=1,b=2,c=3; int *arr[3]; arr[0]=&a; arr[1]=&b; arr[2]=&c; this forms the array of pointer...ie an array which contains a set of addresses....in this case address of set of intergers............ pointer of array!! a[]={1,2,3,4}; int *p;//pointer to an array// p=a;//in this it will contain the base address of a// ie address of a[0]; |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Icon Programming Language FAQ | icon-project@cs.arizona.edu | Tech FAQ | 0 | 06-01-2004 04:00 AM |
| Icon Programming Language FAQ | icon-project@cs.arizona.edu | Tech FAQ | 0 | 05-01-2004 04:00 AM |
| comp.lang.eiffel Frequently Asked Questions (FAQ) | Franck Arnaud | Tech FAQ | 0 | 04-17-2004 08:27 AM |
| comp.constraints FAQ (Part 1 of 1) | pse@cs.unh.edu | Tech FAQ | 0 | 04-17-2004 08:23 AM |