HOW WILL YOU PRINT THE VALUE AND ADDRESS OF A POINTER VARIABLE (EXAMPLE INT *P) IN C?
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.
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
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