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

p is a pointer and it holds address.
we are assigning 20 to p;it means pointer p points the value pointed by address 20.
so to show the value on address 20 you have give *p

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pointer variable in c language?

1155


What is use of null pointer in c?

1060


formula to convert 2500mmh2o into m3/hr

1051


Is int a keyword in c?

1039


Is fortran still used in 2018?

1096


Explain the red-black trees?

1202


Explain the difference between the local variable and global variable in c?

1135


What’s the special use of UNIONS?

1205


How old is c programming language?

1065


What is difference between Structure and Unions?

1311


What is c variable?

1101


Are the outer parentheses in return statements really optional?

1160


What is pass by reference in functions?

912


Write a program to use switch statement.

1186


What is difference between far and near pointers?

1106