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 pointer in c plus plus?

1384


What is the difference between memcpy and memmove?

1085


What is the difference between NULL and NUL?

1351


Explain is it valid to address one element beyond the end of an array?

1249


What is the use of printf() and scanf() functions?

1189


What is a program?

1337


Define macros.

1328


Is c compiled or interpreted?

1246


What does typedef struct mean?

1164


swap 2 numbers without using third variable?

1177


Explain output of printf("Hello World"-'A'+'B'); ?

1559


Why c is faster than c++?

1089


Write a program to generate random numbers in c?

1156


What is omp_num_threads?

1134


Can the “if” function be used in comparing strings?

1107