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 / santhi perumal
We are assigning 20 to *p. Which means we are assigning the
address 20 to p. when you want to print the address of the
pointer variable we have to print just p not *p. if you want
to print the value stored in the particular address we need
to print like *p. in this case we are printing p so it will
give the address 20 to it.
| Is This Answer Correct ? | 31 Yes | 5 No |
Post New Answer View All Answers
What is #line used for?
Can you tell me how to check whether a linked list is circular?
What is the difference between exit() and _exit() function in c?
What are the application of c?
Explain pointer. What are function pointers in C?
What are structural members?
Tell me can the size of an array be declared at runtime?
A float occupies 4 bytes in memory. How many bits are used to store exponent part? since we can have up to 38 number for exponent so 2 ki power 6 6, 6 bits will be used. If 6 bits are used why do not we have up to 64 numbers in exponent?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What does node * mean?
Can stdout be forced to print somewhere other than the screen?
What is p in text message?
Are enumerations really portable?
The statement, int(*x[]) () what does in indicate?
What are derived data types in c?