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

Can we increase size of array in c?

542


What is clrscr ()?

637


What are c preprocessors?

679


What is #include stdlib h?

616


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

653






Can 'this' pointer by used in the constructor?

614


Why does everyone say not to use gets?

610


#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); }

717


What is the purpose of scanf() and printf() functions?

724


Can you please compare array with pointer?

617


Explain what is the difference between null and nul?

658


What is an operator?

656


Explain about the constants which help in debugging?

855


Which built-in library function can be used to match a patter from the string?

747


How important is structure in life?

591