Q.
what is the output of the following code stmt?the compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration.integer is one byte long.
what is the output of the following code stmt?the compiler saves the first integer at the memory location 4165 and the rest at consecutive memory spaces in order of declaration.integer is one byte long.
integer a
pointer c,d
c=&a
d=c
a=a+10
print*c
Answer : 10
Run the following code in c compiler.
[code]#include <stdio.h>
int main() {
int a=9;
int *c, *d;
c=&a;
d=c;
a=a+10;
printf("%d",*c);
return 0;
}[/code]
0 comments:
Post a Comment