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
What will be the outcome of the following conditional statement if the value of variable s is 10?
How many levels of pointers can you have?
What is meant by inheritance?
Explain what is the most efficient way to store flag values?
What is return type in c?
Which is the best website to learn c programming?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Write a program to print fibonacci series without using recursion?
what is the significance of static storage class specifier?
Explain what is the stack?
What is the difference between array and linked list in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain how can I convert a number to a string?
Why do we use null pointer?
What should malloc() do?