#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 will you delete a node in DLL?
What is infinite loop?
What is the general form of function in c?
How to define structures? ·
Develop a flow chart and write a c program to find the roots of a quadratic equation ax2+bx+c=0 using switch and break statement.
What is a function simple definition?
How does the C program handle segmentation faults?
What is Your Name :)
Can main () be called recursively?
What are the types of variables in c?
Which weighs more, a gram of feathers or a gram of gold?
what is the diff b/w static and non static variables in C. Give some examples plz.