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
Explain About fork()?
What tq means in chat?
Tell me what is the purpose of 'register' keyword in c language?
hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel
What is the meaning of typedef struct in c?
What are the 5 elements of structure?
Write the Program to reverse a string using pointers.
What is the concatenation operator?
what is bit rate & baud rate? plz give wave forms
Is it fine to write void main () or main () in c?
diff between exptected result and requirement?
What is the value of c?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is ambagious result in C? explain with an example.
Why c language is called c?