What is the memory allocated by the following definition ?
int (*x)();
Answer Posted / 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 |
Post New Answer View All Answers
What is type qualifiers?
Is file a keyword in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is a constant?
Explain how do you generate random numbers in c?
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
Tell us the use of fflush() function in c language?
Can we increase size of array in c?
Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.
How is null defined in c?
Explain void pointer?
What is variable and explain rules to declare variable in c?
When can you use a pointer with a function?
What is c method?
What are the different types of errors?