#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
Distinguish between actual and formal arguments.
How to use c/c++ code in JAVA
10 Answers CDAC, IBM, Satyam, Scope International,
Where register variables are stored in c?
What is a memory leak in structures? How can we rectify that?
Why isn't it being handled properly?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
Read N characters in to an array . Use functions to do all problems and pass the address of array to function. 1. Print only the alphabets . If in upper case print in lower case vice versa.
What is the difference between int main and void main?
Write a program on swapping (100, 50)
What is meant by initialization and how we initialize a variable?
why u join this call center?
how to swap 4 number without using temporary number?