How do you write a program which produces its own source code as its output?
printitself.c #include <stdio.h> int main() { char ch; FILE *file; file=fopen("printitself.c","r"); while((ch=fgetc(file))!=EOF) printf("%c",ch); return 0; }