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 |
Do character constants represent numerical values?
What is the meaning of c in c language?
write a program to print the one dimensional array.
What is memory leak in c?
Explain how can I pad a string to a known length?
What is a 'null pointer assignment' error?
What is typedef struct in c?
what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1
What is size of union in c?
What is a constant?
#include<stdio.h> main() { int a[3]; int *I; a[0]=100;a[1]=200;a[2]=300; I=a; Printf(“%d\n”, ++*I); Printf(“%d\n”, *++I); Printf(“%d\n”, (*I)--); Printf(“%d\n”, *I); } what is the o/p a. 101,200,200,199 b. 200,201,201,100 c. 101,200,199,199 d. 200,300,200,100
What is scanf () in c?