#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
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
/*program to calculate hra,da in salary if salary less than 10000 then hra15%,da13% otherwise hra20%,da18%/*
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
5 Answers TCS, Vimukti Technologies,
why programs in c are running with out #include<stdio.h>? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }
Find the highest of three numbers and print them using ascending orders?
Why c is called object oriented language?
Explain function pointer with exapmles.
what do you mean by inline function in C?
Write a C program to print 1 2 3 ... 100 without using loops?
What are the advantages of using Unions?
What are the differences between new and malloc in C?
Do you know the use of 'auto' keyword?