0
Follow
0
View

What uses do reading label address have?

ddr520520 注册会员
6 days ago

Taking the address of a label with && is a gcc extension. It allows you to use a variable containing a label address as a destination for goto. For example:

void *p = &&l0;
if (x==1) {
    p = &&l1;
} else if (x==2) {
    p = &&l2;
}
goto *p;

l0:
printf("at l0\n");
l1:
printf("at l1\n");
l2:
printf("at l2\n");

You can read more details of this feature in the gcc documentation.

About the Author

Question Info

Publish Time
6 days ago
Update Time
6 days ago

Related Question

php pdo实现数据库操作

五折交叉对比实验的random_state设置

不同的java版本与sudo命令

来自Docker hub Image(Strapi)的Azure Web应用程序-无法运行应用程序

uniapp vue3 如何在微信小程序的setup中拿到ref的dom实例

运行.ps1文件如何绕过“您想允许此应用程序对您的设备进行更改吗?”UAC Windows Powershell消息?

windows任务管理器创建转储文件失败

pycharm中打开markdown无法显示本地图片

如何修复Docker无效引用格式?

验证问题与DOB字段jquery