Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How do I declare a pointer to an array?

Answer Posted / chittaranjan

int (*ptr)[10];
is the proper declaration of pointer to an array, i.e. ptr
is a pointer to an array of 10 integers .

Note:
int *ptr[10];
which would make ptr the name of an array of 10 pointers to
type int.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a far pointer in c?

996


What is the symbol indicated the c-preprocessor?

1176


What is anagram in c?

883


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1239


I need a sort of an approximate strcmp routine?

993


How does placing some code lines between the comment symbol help in debugging the code?

952


Why is it that not all header files are declared in every C program?

1157


What is wrong with this program statement? void = 10;

1215


What is the benefit of using an enum rather than a #define constant?

1188


How do I use void main?

1058


What is a memory leak? How to avoid it?

1267


How can this be legal c?

1053


Explain what happens if you free a pointer twice?

1028


Is there anything like an ifdef for typedefs?

1103


Is python a c language?

957