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 hashing in c?
What is %g in c?
Why do we use null pointer?
What is main void in c?
What is the significance of an algorithm to C programming?
How can I implement a delay, or time a users response, with sub-second resolution?
write a program that uses point of sale system. which are mainly used by retail markets, where the is a database inventory list, a slip should be printed for the customer. manage should be able to access what has been sold and what is left from stock?
How can I read and write comma-delimited text?
What are bit fields? What is their use?
Write a simple code fragment that will check if a number is positive or negative.
Find occurence of a character in a sting.
What is array in c with example?