representing binary values
Please support our C advertiser: Programming Forums
![]() |
In octal, it would be
unsigned char foo = 032; // a leading zero.
You can't specify binary constants in standard C, though some compilers designed for small embedded processors do as an extension.
unsigned char foo = 032; // a leading zero.
You can't specify binary constants in standard C, though some compilers designed for small embedded processors do as an extension.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
UK Voter? Please send a message to Incapability Brown and the rest of Zanu-Labour
Up to 8Mb PlusNet broadband from only £5.99 a month!
UK Voter? Please send a message to Incapability Brown and the rest of Zanu-Labour
Up to 8Mb PlusNet broadband from only £5.99 a month!
![]() |
Similar Threads
Other Threads in the C Forum
- Hi Everyone, Have a C++ Problem. (C++)
- Help - Problem with array (C)
- Adding binary values from a file (C++)
- What's Wrong with my Array? (C++)
- I dont know what mistake I did (C++)
- MIPS language question2 pls help.. (Assembly)
- Exercise using: unsigned int datecode(int year, int month, int day); (C++)
Other Threads in the C Forum
•
•
•
•
Views: 2100 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)






Linear Mode