Possible Duplicate:
Can I use a binary literal in C or C++?
In C I can write
uint32_t a = 0x40022000;
using hex. Can I do something similar by entering binary digits?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t do that with standard C, but some compilers such as gcc supports an extension that allows you to write something like