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
How will you write a code for accessing the length of an array without assigning it to another variable?
What is structure in c definition?
What is a method in c?
What is the purpose of void in c?
What is the difference between malloc() and calloc() function in c language?
What are the characteristics of arrays in c?
which is an algorithm for sorting in a growing Lexicographic order
What is the difference between %d and %i?
Explain how do you determine whether to use a stream function or a low-level function?
Write a code of a general series where the next element is the sum of last k terms.
What is default value of global variable in c?
How is a null pointer different from a dangling pointer?
Do string constants represent numerical values?
Why are all header files not declared in every c program?
How is a pointer variable declared?