#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 the use of printf() and scanf() functions?
What are static variables, and where are they stored?
What is context in c?
two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.
What is the output of below code? main() { static in a=5; printf("%3d",a--); if(a) main(); }
any "C" function by default returns an a) int value b) float value c) char value d) a & b
what are the compilation steps? ( i want inside the compiler )
What is a null pointer in c?
Explain low-order bytes.
#include<stdio.h> int SumElement(int *,int); void main(void) { int x[10]; int i=10; for(;i;) { i--; *(x+i)=i; } printf("%d",SumElement(x,10)); } int SumElement(int array[],int size) { int i=0; float sum=0; for(;i<size;i++) sum+=array[i]; return sum; } output?
What is array of structure in c?
int *p=20; if u print like dis printf("%d",p); o\p:- 20; how is it possible? plz give me the explanation.