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...

What is the memory allocated by the following definition ?
int (*x)[10];

Answer Posted / niraj singh

It will occupy 2 bytes of memory(In 16-bit system).
Explanation: int (*x)[10] means pointer to an array of 10
integers , not an array of 10 nos. of integer pointers. So
any pointer can take two bytes of memory.

Is This Answer Correct ?    32 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you write a code for accessing the length of an array without assigning it to another variable?

1094


What is structure in c definition?

1112


What is a method in c?

1211


What is the purpose of void in c?

1109


What is the difference between malloc() and calloc() function in c language?

1138


What are the characteristics of arrays in c?

1103


which is an algorithm for sorting in a growing Lexicographic order

1866


What is the difference between %d and %i?

1148


Explain how do you determine whether to use a stream function or a low-level function?

1135


Write a code of a general series where the next element is the sum of last k terms.

1092


What is default value of global variable in c?

1051


How is a null pointer different from a dangling pointer?

1086


Do string constants represent numerical values?

1449


Why are all header files not declared in every c program?

1150


How is a pointer variable declared?

1158