C语言 使用goto语句
摘要:
goto语句可以直接完成跳转,在Linux内核代码中频繁出现。匹配上goto的代码块,最后需要加个return,不然会执行后面的代码块。 #include <stdio.h> int main() { printf("1\n"); goto case1; printf("2\n"); case1: 阅读全文
posted @ 2024-09-20 08:28 王景迁 阅读(3) 评论(0) 推荐(0) 编辑
posted @ 2024-09-20 08:28 王景迁 阅读(3) 评论(0) 推荐(0) 编辑