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

Answers were Sorted based on User's Feedback



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

Answer / dddhacker

Wrong!
Its a function pointer, therefore on a 32 bit platform for
example, 4 bytes are allocated for it.

Is This Answer Correct ?    13 Yes 2 No

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

Answer / ningappa

The above code is function pointer declaration.So there is
no memory allocated as it is just declaration and no value
is being assigned to it........

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More C Interview Questions

What is the difference between array and pointer?

1 Answers  


What is s or c?

1 Answers  


What's the best way of making my program efficient?

1 Answers   Celstream,


explain what is fifo?

1 Answers  


What is wrong in this statement?

1 Answers  


Why do we write return 0 in c?

1 Answers  


identify the in correct expression a.a=b=3=4; b.a=b=c=d=0; float a=int b=3.5; d.int a; float b; a=b=3.5;

8 Answers   TCS,


write a function that accepts an array A with n elements and array B with n-1 elements. Find the missing one in array B,with an optimized manner?

2 Answers   Zensar,


What is a far pointer?What is the utility?

4 Answers  


Do you know the purpose of 'register' keyword?

1 Answers  


what is constant pointer?

3 Answers  


Difference between Function to pointer and pointer to function

1 Answers  


Categories