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
what do you mean by inline function in C?
What is %lu in c?
What does sizeof return c?
What is function prototype?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is include directive in c?
What is a structural principle?
What math functions are available for integers? For floating point?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Where register variables are stored in c?
how should functions be apportioned among source files?
How to compare array with pointer in c?
pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)
Why does everyone say not to use scanf? What should I use instead?
What is the difference between text and binary modes?