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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

600


What does return 1 means in c?

588


In a switch statement, what will happen if a break statement is omitted?

603


Explain how do you search data in a data file using random access method?

698


What does static variable mean in c?

653






What are the Advantages of using macro

688


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2303


Explain what are the different file extensions involved when programming in c?

633


What is the difference between union and anonymous union?

835


Is r written in c?

724


What are local static variables? How can you use them?

647


Explain why c is faster than c++?

575


Tell me with an example the self-referential structure?

566


Explain what is the difference between functions getch() and getche()?

608


How can I change the size of the dynamically allocated array?

632