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
Can we increase size of array in c?
What is clrscr ()?
What are c preprocessors?
What is #include stdlib h?
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Can 'this' pointer by used in the constructor?
Why does everyone say not to use gets?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
What is the purpose of scanf() and printf() functions?
Can you please compare array with pointer?
Explain what is the difference between null and nul?
What is an operator?
Explain about the constants which help in debugging?
Which built-in library function can be used to match a patter from the string?
How important is structure in life?