Q:

HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A NORMAL VARIABLE IN (EXAMPLE INT P) C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A NORMAL VARIABLE IN (EXAMPLE INT P) C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

We can use printf (“%x”, &p); statement to print the address that pointer “p” stores.

We can use printf (“%d”, p); statement to print the value of the normal variable.

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT ARE LIBRARY FUNCTIONS AND THEIR USE IN C LANG... >>
<< HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A POIN...