What is the memory allocated by the following definition ?
int (*x)();
Answers were Sorted based on User's Feedback
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 |
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 |
What is the difference between array and pointer?
What is s or c?
What's the best way of making my program efficient?
explain what is fifo?
What is wrong in this statement?
Why do we write return 0 in c?
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;
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?
What is a far pointer?What is the utility?
Do you know the purpose of 'register' keyword?
what is constant pointer?
Difference between Function to pointer and pointer to function