小编sag*_*Das的帖子

如何在 c 编程中不使用循环、递归或 goto 语句打印 1 到 100?

我从互联网上找到了这个解决方案。

#include <stdio.h>
#include <stdlib.h>
int n = 0;
void first() {
    void* x;
    printf("%d\n", ++n);
    if (n >= 100) {
        exit(0);
    }   
    *((char**) (&x + 4)) -= 5;
}
int main() {
    first();
    return 1;
}
Run Code Online (Sandbox Code Playgroud)

有人可以向我解释该行的含义*((char**) (&x + 4)) -= 5;吗?

c algorithm

5
推荐指数
1
解决办法
1565
查看次数

标签 统计

algorithm ×1

c ×1