Q:

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

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)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now