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

What are two dimensional arrays alternatively called as?

0 Answers  


write a program to swap two numbers without using temporary variable?

3 Answers  


What is n in c?

0 Answers  


Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors

3 Answers  


what are the advantages of a macro over a function?

0 Answers   TCS,


What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?

1 Answers  


What is static and volatile in c?

0 Answers  


can we print any string without using terminator?

2 Answers   Infosys, TCS,


Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

0 Answers  


Write a program of prime number using recursion.

0 Answers   Aspiring Minds,


In c language can we compile a program without main() function?

0 Answers  


why return type of main is not necessary in linux

0 Answers   TCS,


Categories