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 test design and test case design?

0 Answers  


Should a function contain a return statement if it does not return a value?

0 Answers  


Do array subscripts always start with zero?

0 Answers  


What are unions in c?

0 Answers  


What's the difference between struct x1 { ... }; and typedef struct { ... } x2; ?

3 Answers  






What is the difference between void main and main in c?

0 Answers  


Explain the difference between #include "..." And #include <...> In c?

0 Answers  


A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM

0 Answers   HCL,


Why main is used in c?

0 Answers  


compute the nth mumber in the fibonacci sequence?

10 Answers   Canon, HPL, Satyam, TCS,


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

0 Answers  


Why doesnt this code work?

0 Answers  


Categories