Tux Education Our New Education Channel Please Share And Subscribe It...

/* Program Which Produces Its Own Source Code As Its Output */


// Compiler : Dev-C++ 4.9.9.2

#include<stdio.h>

int main()
{
    FILE *fp;
    char c;
    
    fp=fopen(__FILE__,"r");
    
    do{
                           c=getc(fp);
                           putchar(c);
    }while(c!=EOF);
    
    fclose(fp);
    
    getch();
    return 0;
}

Post a Comment