#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 chain pointer in c?
What is hungarian notation? Is it worthwhile?
how to print value of e(exp1)up to required no of digits after decimal?
which header file contains main() function in c?
17 Answers Google, HCL, TCS,
How is a structure member accessed?
How can I sort more data than will fit in memory?
#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k.
praagnovation
what does keyword ‘extern’ mean in a function declaration?
int a[3][5]={ {1,2,3,4,5],{2,3,4,5,6},{10,11,12,13,14}}; int *p=&a; printf(“%d”,*(*(x+1)+3));
Can you assign a different address to an array tag?
Why does the call char scanf work?