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

Answers were Sorted based on User's Feedback



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

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

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

Answer / subbu

no memory is allocated at the time of pointer declaration

Is This Answer Correct ?    9 Yes 6 No

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

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 the memory allocated by the following definition ? int (*x)[10]; ..

Answer / chris_sreekanth

20 bytes

Is This Answer Correct ?    13 Yes 16 No

Post New Answer

More C Interview Questions

what is c language.

3 Answers  


How can I delete a file?

1 Answers  


How can you draw circles in C?

1 Answers   Accenture,


what is c programing

11 Answers   Wipro,


code for concatination of 2 strings with out using library functions?

3 Answers  


What are the 4 data types?

1 Answers  


Is c an object oriented programming language?

1 Answers  


What is #error and use of it?

1 Answers  


what is linkage error when it occurs in c program

3 Answers  


What is a pointer value and address in c?

1 Answers  


Differentiate between static and dynamic modeling.

1 Answers   Wipro,


main() { int i; printf("%d",scanf"%d",&i))//if the input is 12 24 34 then wat will be the output }

2 Answers  


Categories