C Program to Print its Own Source Code
C Program to Print its Own Source Code
Here’s the program:
#include<stdio.h>
char *program=”#include<stdio.h>%cchar *program=%c%s%c;%cvoid main()%c{%cprintf(program,10,34,program,34,10, 10,10,10);%c}”;
void main()
{
printf(program,10,34,program,34,10,10,10,10);
}
{
printf(program,10,34,program,34,10,10,10,10);
}
0 comments:
Comment here / Ask your Query !!