ansiself.c
来自「国外网站上的一些精典的C程序」· C语言 代码 · 共 11 行
C
11 行
/*** Challenge: Write the smallest self-duplicating program, not** reading the source file, which successfully exits and is strictly** conforming Standard C.**** Public domain response by Thad Smith*/#include<stdio.h>main(){char*c="\\\"#include<stdio.h>%cmain(){char*c=%c%c%c%.102s%cn%c;printf(c+2,c[102],c[1],*c,*c,c,*c,c[1]);exit(0);}\n";printf(c+2,c[102],c[1],*c,*c,c,*c,c[1]);exit(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?