有什么用0x的记数法表示的意思吗? [英] What do numbers using 0x notation mean?

查看:98
本文介绍了有什么用0x的记数法表示的意思吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是对一些带有0x preFIX意思?

What does a 0x prefix on a number mean?

const int shared_segment_size = 0x6400;

这是一个从写在Linux上的C程序。我没有被处理像 0x6400 整数很长一段时间,不能回忆一下它相当于尤其是什么信 X 表示。

It's from a C program written on linux. I haven't been dealing with integers like 0x6400 for a long time and can't recall what it amounts to and particularly what the letter x means.

推荐答案

0X 开始是十六进制整数文字。 (基数为16)

Literals that start with 0x are hexadecimal integers. (base 16)

0x6400 号码是 25600

6 * 16^3 + 4 * 16^2 = 25600

这篇关于有什么用0x的记数法表示的意思吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆