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 are pointers? Why are they used?

620


What is the method to save data in stack data structure type?

593


If the size of int data type is two bytes, what is the range of signed int data type?

577


Why is c faster?

580


How can you determine the maximum value that a numeric variable can hold?

626






What is pointer & why it is used?

593


What is the Purpose of 'extern' keyword in a function declaration?

637


How do I determine whether a character is numeric, alphabetic, and so on?

614


What is dynamic variable in c?

551


What is the difference between declaring a variable and defining a variable?

710


What does printf does?

728


What does %p mean?

578


What is #define in c?

605


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

1577


What are inbuilt functions in c?

551