Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


#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

Post New Answer

More C Interview Questions

How will you delete a node in DLL?

0 Answers   GrapeCity,


What is infinite loop?

0 Answers  


What is the general form of function in c?

0 Answers  


‎How to define structures? · ‎

0 Answers  


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.

1 Answers   TCS,


What is a function simple definition?

0 Answers  


How does the C program handle segmentation faults?

2 Answers  


What is Your Name :)

1 Answers  


Can main () be called recursively?

0 Answers  


What are the types of variables in c?

0 Answers  


Which weighs more, a gram of feathers or a gram of gold?

2 Answers  


what is the diff b/w static and non static variables in C. Give some examples plz.

3 Answers   Wipro,


Categories