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 are dangling pointers? How are dangling pointers different from memory leaks?

1230


How do you define a function?

969


How can I do serial ("comm") port I/O?

1130


Explain how many levels deep can include files be nested?

1024


What is the best way of making my program efficient?

961


Are local variables initialized to zero by default in c?

983


How many bytes is a struct in c?

1104


What do you mean by a local block?

1026


I need a sort of an approximate strcmp routine?

986


Explain Basic concepts of C language?

1079


How do you use a pointer to a function?

1025


Distinguish between actual and formal arguments.

1012


Is c a great language, or what?

1049


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

1025


Differentiate abs() function from fabs() function.

961