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 #include stdio h and #include conio h?

0 Answers  


to convert a string without using decrement operater and string functions

1 Answers  


what is an inline function?

2 Answers   TCS,


What is the purpose of 'register' keyword in c language?

0 Answers  


what is c programing

11 Answers   Wipro,






can we declare a function in side the structure?

2 Answers   HCL,


What is %d called in c?

0 Answers  


What are global variables and explain how do you declare them?

0 Answers  


what is an array

5 Answers  


Subtract Two Number Without Using Subtraction Operator

0 Answers  


What is function and its example?

0 Answers  


How are structure passing and returning implemented?

0 Answers  


Categories