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

int *p=20;
means
int *p;
p=20;
so the address of p is 20
printf("%d",p);
it prints 20 because now the base address of p is 20
even if we print as
printf("%u",p);
the o/p will be 20

Is This Answer Correct ?    9 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by inline function in C?

1101


What is %lu in c?

1332


What does sizeof return c?

1130


What is function prototype?

1217


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1981


What is include directive in c?

1207


What is a structural principle?

1243


What math functions are available for integers? For floating point?

1184


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1107


Where register variables are stored in c?

1002


how should functions be apportioned among source files?

1167


How to compare array with pointer in c?

1169


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2697


Why does everyone say not to use scanf? What should I use instead?

1473


What is the difference between text and binary modes?

1242