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

write a c program for swapping two strings using pointer

2642


What is static memory allocation? Explain

1109


What is an auto keyword in c?

1104


Can we use any name in place of argv and argc as command line arguments?

1081


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

1035


the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset

1115


What is the difference between test design and test case design?

2104


What are the types of arrays in c?

1187


What is d'n in c?

1129


What is call by value in c?

1017


What are enums in c?

1216


How many main () function we can have in a project?

1121


What does 2n 4c mean?

1245


Write a program to swap two numbers without using a temporary variable?

1142


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2878