declaring a decimal number in c
This is my first time using this message board so if i am doing something wrong please let me know.
OK, I am trying to read the following number in from a card reader: 0001292114. I can store the number in a int just fine, but when I try to verify that the entered number is correct
( if(x == 0001292114) )
I get the following error: illegal digit '9' for base '8'.
I understand that a number starting with "0" is an octal number. My question is how do you declare the number 0xxxxxxxx as a decimal value?