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


Please Help Members By Posting Answers For Below Questions

List a few unconditional control statement in c.

560


What is the purpose of the statement: strcat (S2, S1)?

642


What is openmp in c?

612


Why do we use static in c?

634


Explain setjmp()?

659






What is the c language function prototype?

646


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2609


How can I do serial ("comm") port I/O?

689


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

825


Explain how are portions of a program disabled in demo versions?

655


Tell me what is the purpose of 'register' keyword in c language?

619


what is uses of .net

1277


Explain how do you determine a file’s attributes?

594


What is the difference between array and pointer?

569


What is .obj file in c?

648