Q:

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

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

0

HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A POINTER VARIABLE (EXAMPLE INT *P) IN 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 pointer 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
HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A NORM... >>
<< WHAT IS THE SIZE OF INT POINTER AND CHAR POINTER I...