&是什么功放;&安培;意味着无效* p =&放大器;&安培; ABC; [英] What does && mean in void *p = &&abc;

查看:147
本文介绍了&是什么功放;&安培;意味着无效* p =&放大器;&安培; ABC;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我碰到了一块code 无效* P =放大器;&安培; ABC; 。什么是&放大器的重要性;&安培; 在这里?
我知道右值引用,但我认为&放大器;&功放;在这种情况下使用是不同的。这是什么&放大器;&安培; 指示无效* p =&功放​​;&安培; ABC;

I came across a piece of code void *p = &&abc;. What is the significance of && here? I know about rvalue references but I think && used in this context is different. What does && indicate in void *p = &&abc; ?

推荐答案

<一个href=\"http://gcc.gnu.org/onlinedocs/gcc-3.2.3/gcc/Labels-as-Values.html#Labels%20as%20Values\"><$c$c>&&是gcc的扩展来获取当前函数中定义的标号的地址。

&& is gcc's extension to get the address of the label defined in the current function.

无效* P =放大器;&安培; ABC 是标准的C99和C ++

void *p = &&abc is illegal in standard C99 and C++.

编译使用g ++。

这篇关于&是什么功放;&安培;意味着无效* p =&放大器;&安培; ABC;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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