It is time for another C programming pop quiz…
if (123 > 0123)
{
printf ("123 > 0123\n");
}
else
{
printf ("It is not.\n");
}
What would it print?
It is time for another C programming pop quiz…
if (123 > 0123)
{
printf ("123 > 0123\n");
}
else
{
printf ("It is not.\n");
}
What would it print?
Coming from 6502 and 68000 assembler, the I found the C notation of hex and especially octal kind of backwards/wrong. Having a $ before hex numbers, % before binary numbers and skipping octal completely makes more sense to me.
MS BASIC was &HF00D, 6809 asm was $F00D, C is 0xF00D. Yep! Totally clear!