TL;DR Why does
printf("%d\n", 042/10 );
return 3 and not 4?
Hey so i actually i actually had this doubt while i was in the Arduino IDE, but then just to verify I did try in another C compiler. The code in Question is here:
Serial.println(42/10);
This works fine, displays 4. The is the funny bit
Serial.println(042/10);
This return 3.
This seems very fundamental but I couldn't find a suitable post answering this. Thanks in Advance!