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 / valli
int *p=20;
means
int *p;
p=20;
so the address of p is 20
printf("%d",p);
it prints 20 because now the base address of p is 20
even if we print as
printf("%u",p);
the o/p will be 20
Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
What is define c?
What is a pointer value and address in c?
Is c still relevant?
What is a pointer on a pointer in c programming language?
What is void main ()?
What is the difference between text files and binary files?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
How can I find the modification date and time of a file?
What is the difference between single charater constant and string constant?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?
What is a global variable in c?
What is a built-in function in C?
Explain how do you determine a file’s attributes?
Why doesnt that code work?