#include<stdio.h>
int main(){
int i=10;
int *ptr=&i;
*ptr=(int *)20;
printf("%d",i);
return 0;
}
Output: 20
can anyone explain how came the output is 20
No Answer is Posted For this Question
Be the First to Post Answer
What is meant by operator precedence?
What does static variable mean in c?
how to convert binary to decimal and decimal to binary in C lanaguage
7 Answers BPO, Far East Promotions, IBM, RBS,
void main() { char far *farther,*farthest; printf("%d..%d",sizeof(farther),sizeof(farthest)); }
What is the mean of this statement:: if(int i=0 * i=9)
What is a pointer on a pointer in c programming language?
What is derived datatype in c?
how could explain about job profile
What is a built-in function in C?
how would a 4*3 array A[4][3] stored in Row Major Order?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
print ur name without using any semicolon in c/c++....
21 Answers Bosch, TCS, Wipro,