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
Can we declare a function inside a function in c?
What does double pointer mean in c?
What are directives in c?
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
What are control structures? What are the different types?
Explain what is the difference between functions abs() and fabs()?
What are runtime error?
How do you initialize pointer variables?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Is c a great language, or what?
What does it mean when a pointer is used in an if statement?
Can you think of a logic behind the game minesweeper.
When was c language developed?
How can I make it pause before closing the program output window?
How can I copy just a portion of a string?