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 / immanuel
printf("%p",p); // this prints the address to 20
printf("%d",p); //this prints the value itself.
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
What are pointers? What are different types of pointers?
How pointer is different from array?
What are bitwise shift operators in c programming?
What is an expression?
What are the types of type specifiers?
When can a far pointer be used?
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
What is function prototype in c with example?
Process by which one bit pattern in to another by bit wise operation is?
Why can’t we compare structures?
what is the role you expect in software industry?
Does sprintf put null character?
What is malloc return c?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What is the difference between declaring a variable and defining a variable?