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 New modifiers?

1123


Compare and contrast compilers from interpreters.

1117


What is main function in c?

1075


Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above

1136


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1223


what is the height of tree if leaf node is at level 3. please explain

2148


What does c in a circle mean?

1070


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

2519


What is line in c preprocessor?

1050


what are non standard function in c

1907


If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?

1253


What is a structure member in c?

995


What is an operator?

1069


Linked lists -- can you tell me how to check whether a linked list is circular?

1080


What is 1d array in c?

1084