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

printf("%p",p); // this prints the address to 20

printf("%d",p); //this prints the value itself.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local static variables? How can you use them?

1103


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

992


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2415


What is dynamic variable in c?

1004


What is difference between stdio h and conio h?

1335


What is the heap?

1177


How can I read in an object file and jump to locations in it?

1001


What is the difference between functions abs() and fabs()?

1115


what are bit fields? What is the use of bit fields in a structure declaration?

2075


What is pass by value in c?

1032


What is pointer & why it is used?

1082


What is the difference between #include

and #include “header file”?

997


What is difference between structure and union?

1096


Who developed c language?

1053


Why does everyone say not to use gets?

1053