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 / deepak

/*int *p=20;
is same as*/
int *p;
p=20;
so p having address of an integer value;
so
printf("%d,%u",p,p);
will give you answer 20,20

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of structure padding in c?

1114


Explain what will be the outcome of the following conditional statement if the value of variable s is 10?

1326


How can my program discover the complete pathname to the executable from which it was invoked?

1121


Write a program to print all permutations of a given string.

1236


What is the use of in c?

1085


Can variables be declared anywhere in c?

1150


How important is structure in life?

1150


How can I call fortran?

1101


Ow can I insert or delete a line (or record) in the middle of a file?

1050


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

1110


Is c high or low level?

1054


What is wild pointer in c?

1128


Why do we use null pointer?

1118


What is wrong in this statement? scanf(ā€œ%dā€,whatnumber);

1289


Is there anything like an ifdef for typedefs?

1223