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 / deepak

/*int *p=20;
is same as*/
int *p;
p=20;
so p having address of an integer value;
so
printf("%d,%u",p,p);
will give you answer 20,20

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of getch ()?

627


For what purpose null pointer used?

605


What is the purpose of the preprocessor directive error?

673


How to compare array with pointer in c?

615


Where we use clrscr in c?

694






How many types of sorting are there in c?

604


What does do in c?

601


Why main is not a keyword in c?

641


Define Array of pointers.

629


What is difference between stdio h and conio h?

877


What is scope rule of function in c?

541


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

3047


program for reversing a selected line word by word when multiple lines are given without using strrev

1941


What is the purpose of 'register' keyword?

683


Combinations of fibanocci prime series

1105