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 / vignesh1988i
ya,, i think..
first we have declared an pointer variable *p and
assigned a value 20.... but we know that pointers are those
which can hold only the address of another variable..... so
surely in the memory P it wont have 20... so 20 will be
stored in some other unbknown variable in the memory which
wont be visible to user in thesr cases...... that unknown
memory address will be getting stored in this pointer
variable.... so when we give only p or *p it will print 20
and not the address of the unknown location containing
20........... because it will be directly accessible
| Is This Answer Correct ? | 7 Yes | 10 No |
Post New Answer View All Answers
How pointers are declared?
What are the keywords in c?
about c language
How is a structure member accessed?
Explain that why C is procedural?
how to execute a program using if else condition and the output should enter number and the number is odd only...
Which is an example of a structural homology?
Where is volatile variable stored?
Why is this loop always executing once?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
What is 2 d array in c?
What are different types of pointers?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
Does c have circular shift operators?
Explain what’s a signal? Explain what do I use signals for?