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 |
what is c language.
How can I delete a file?
How can you draw circles in C?
what is c programing
code for concatination of 2 strings with out using library functions?
What are the 4 data types?
Is c an object oriented programming language?
What is #error and use of it?
what is linkage error when it occurs in c program
What is a pointer value and address in c?
Differentiate between static and dynamic modeling.
main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }