
Member • Sep 17, 2013
confusing C question
#include
int main() {
int i = 0100;
printf("%d",i);
}
Member • Sep 17, 2013
Member • Sep 17, 2013
Member • Sep 17, 2013
and 0b for binary... Its same like MCU's 😛 didn't think in that way! thanks!Jeffrey SamuelSimple
The first letter '0' indicate the compiler that the number is an OCTAL number
'0x' indicates Hexa decimal number
Member • Sep 17, 2013
It seems '0b' will do that for you mateVishal0203and 0b for binary... Its same like MCU's 😛 didn't think in that way! thanks!