#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
wat is the output int main() { char s1[]="Hello"; char s2[]="Hello"; if(s1==s2) printf("Same"); else printf("Diff"); }
What does d mean?
What is the c value paradox and how is it explained?
main() { int age; float ht; printf("Enter height and age"); scanf("%d%d",&height,&age); if((age<=20)&&(ht>=5)) {printf("She loves you");} else {printf("She loves you");} }
what is the difference between procedure oriented and object oriented progaming language
If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.
What do you mean by dynamic memory allocation in c?
What is structure data type in c?
main() { int i=5; printf("%d",++i + i); } output is 10 ------------------------ main() { int i=5; printf("%d",i++ + i); }output is 12 why it is so? give appropiate reason....
What is structure of c program?
Discuss similarities and differences of Multiprogramming OS and multiprocessing OS?
Write a program to print distinct words in an input along with their count in input in decreasing order of their count..