20.
What will be output of following program?
#include<stdio.h>
int main(){
int i = 3;
int *j;
int **k;
j = &i;
k = &j;
printf("%u %u %u",i,j,k);
return 0;
}
Explanation:
Turbo C++ 3.0: 3 Address Address
Turbo C ++4.5: 3 Address Address
Linux GCC: 3 Address Address
Visual C++: 3 Address
Address
Here 6024, 8085, 9091 is any arbitrary address, it may be different.
No comments:
Post a Comment