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

Can we declare a function inside a function in c?

785


What does double pointer mean in c?

762


What are directives in c?

719


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2781


What are control structures? What are the different types?

807






Explain what is the difference between functions abs() and fabs()?

815


What are runtime error?

823


How do you initialize pointer variables?

779


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3942


Is c a great language, or what?

825


What does it mean when a pointer is used in an if statement?

817


Can you think of a logic behind the game minesweeper.

2194


When was c language developed?

891


How can I make it pause before closing the program output window?

762


How can I copy just a portion of a string?

1041