What does "0x..." mean in Integer declaration | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does "0x..." mean in Integer declaration

for example when i write; int x = 0x1; then when i print x it it gives, "1"; but then if i write; int x = 0x10; when i print x it gives, "16";

26th Apr 2020, 9:22 AM
Mark Etale
Mark Etale - avatar
2 Answers
+ 4
hexadecimal value
26th Apr 2020, 9:29 AM
visph
visph - avatar
0
thank you
26th Apr 2020, 9:36 AM
Mark Etale
Mark Etale - avatar