Why i dis lesson to print out the address of an integer we use "%x" | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why i dis lesson to print out the address of an integer we use "%x"

9th Jul 2021, 6:08 AM
Mbi Leonard Appelgryn
Mbi Leonard Appelgryn - avatar
4 Answers
+ 3
Jazz Why should we use "%p" instead of "%x" while displaying pointers in C? They're one and the same, right?
9th Jul 2021, 7:27 AM
Calvin Thomas
Calvin Thomas - avatar
+ 1
Jazz That's very interesting. Thank you!
9th Jul 2021, 8:25 AM
Calvin Thomas
Calvin Thomas - avatar
+ 1
Jazz Thank you.
9th Jul 2021, 10:25 AM
Calvin Thomas
Calvin Thomas - avatar
0
Jazz How is it possible to read more than 1 byte using the hex format specifier? Google isn't helping me.
9th Jul 2021, 8:45 AM
Calvin Thomas
Calvin Thomas - avatar