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...

int *p=20;
if u print like dis printf("%d",p);
o\p:- 20; how is it possible?
plz give me the explanation.

Answer Posted / valli

int *p=20;
means
int *p;
p=20;
so the address of p is 20
printf("%d",p);
it prints 20 because now the base address of p is 20
even if we print as
printf("%u",p);
the o/p will be 20

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Dont ansi function prototypes render lint obsolete?

1124


There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?

1297


Is c# a good language?

1009


How to delete a node from linked list w/o using collectons?

2778


What is c++ used for today?

1108


Is it better to bitshift a value than to multiply by 2?

1092


What are the properties of union in c?

1054


what is the difference between class and unio?

2360


What math functions are available for integers? For floating point?

1131


Can we compile a program without main() function?

1120


What is a 'null pointer assignment' error?

1214


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1087


Describe wild pointers in c?

1110


What is the difference between variable declaration and variable definition in c?

1058


Write a program to check whether a number is prime or not using c?

1058