Programming Languages
C
Objective
Mar 07, 2013
What will be output if you will compile and execute the
following c code?
#include<conio.h>
#include<stdio.h>
int display();
int(*array[3])();
int(*(*ptr)[3])();
int main(){
array[0]=display;
array[1]=getch;
ptr=&array;
printf("%d",(**ptr)());
(*(*ptr+1))();
return 0;
}
int display(){
int x=5;
return x++;
}
Detailed Explanation
No Explanation
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts