什么双下划线的意思是在C语言中的变量名 [英] what does double underscore mean in variable name in c language

查看:1105
本文介绍了什么双下划线的意思是在C语言中的变量名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
  <一href=\"http://stackoverflow.com/questions/224397/why-do-people-use-double-underscore-so-much-in-c\">Why人们使用__(双下划线)与其说是在C ++

我是研究Linux内核编程code。

I was studying the linux kernel programming code.

有艾利它与双下划线开始一些数据结构和功能(_ _)

There aere some data structures and function which starts with double underscore(_ _)

_ _ u32  len

怎么说是异于常人的变量

how that is different from normal variables

推荐答案

这意味着它是一个系统保留的名称。 C标准说,开头的名称以两个下划线或下划线和大写字母,被保留使用的系统或编译器,不应在应用code来定义。

It means it's a system-reserved name. The C standard says that all names beginning with two underscore, or underscore and capital letter, are reserved for the use of the system or compiler and should not be defined in application code.

这篇关于什么双下划线的意思是在C语言中的变量名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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