why is it printing the address as well

if you need to print the data at the address use the dereference operator (*)- so if the address is stored in pointer p you would access the data using *p
Was this page helpful?