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;
return 0;
}
(A) 3 Address 3
|
|
|
(B) 3 Address Address
|
| |
(C) 3 3 3
|
|
|
(D) Compilation
error
|
|
|
(E) None of above
|
|
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