kernelthread.com

Self reproduction in C

Introduction

A C program that prints itself.

Source

main(){char*p="main(){char*p=%c%s%c;(void)printf(p,34,p,34,10);}%c";\ (void)printf(p,34,p,34,10);}

Download

pself.c