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
What are pointers? Why are they used?
What is the method to save data in stack data structure type?
If the size of int data type is two bytes, what is the range of signed int data type?
Why is c faster?
How can you determine the maximum value that a numeric variable can hold?
What is pointer & why it is used?
What is the Purpose of 'extern' keyword in a function declaration?
How do I determine whether a character is numeric, alphabetic, and so on?
What is dynamic variable in c?
What is the difference between declaring a variable and defining a variable?
What does printf does?
What does %p mean?
What is #define in c?
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
What are inbuilt functions in c?