What is the memory allocated by the following definition ?
int (*x)[10];
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / subbu
no memory is allocated at the time of pointer declaration
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / kracekumar
integer occupies 4 bytes in *nix os and 2 byte in DOS/Windows ,so the right answer is sizeof(int)*10.
| Is This Answer Correct ? | 3 Yes | 1 No |
struct ptr { int a; char b; int *p; }abc; what is d sizeof structure without using "sizeof" operator??
What is a wrapper function in c?
What is string constants?
void main() { int a=1; while(a++<=1) while(a++<=2); }
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10
Find greatest number out of 10 number without using loop.
where does it flourished?
What are the advantages of using linked list for tree construction?
What are the scope of static variables?
what are advantages of U D F?
what is the use of pointers