What does a 0x prefix on a number mean?
const int shared_segment_size = 0x6400;
It’s from a C program. I can’t recall what it amounts to and particularly what the letter x means.
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.
Literals that start with
0xare hexadecimal integers. (base 16)The number
0x6400is25600.For an example including letters (also used in hexadecimal notation where A = 10, B = 11 … F = 15)
The number
0x6BF0is27632.