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


Please Help Members By Posting Answers For Below Questions

Describe wild pointers in c?

644


Write an algorithm for implementing insertion and deletion operations in a singly linked list using arrays ?

3059


What is difference between main and void main?

630


Can a file other than a .h file be included with #include?

688


write a program to print largest number of each row of a 2D array

1876






What are header files and what are its uses in C programming?

641


Explain how can I pad a string to a known length?

658


Explain how can I right-justify a string?

627


How can I remove the leading spaces from a string?

638


Disadvantages of C language.

664


Explain the use of bit fieild.

717


What is use of pointer?

589


What is 1d array in c?

602


Is r written in c?

729


What is f'n in math?

623