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 is fflush() function?

1131


What are dangling pointers? How are dangling pointers different from memory leaks?

1299


What is the use of pragma in embedded c?

1050


How can I call a function with an argument list built up at run time?

1233


Explain the difference between strcpy() and memcpy() function?

993


What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?

1333


How can I sort more data than will fit in memory?

1099


What is file in c preprocessor?

1142


What are the features of c languages?

1101


What is the difference between a string and an array?

1197


Differentiate between the expression “++a” and “a++”?

1247


Draw a flowchart to produce a printed list of all the students over the age of 20 in a class .The input records contains the name and age of students. Assume a sentinel value of 99 for the age field of the trailer record

5205


What is the difference between memcpy and memmove?

1016


Can a program have two main functions?

1119


What is sizeof in c?

1001