HomeC Program to Display its own Source Code as Output. C Program to Display its own Source Code as Output. byComputer Programming and Technology. •2:09 PM 0 #include <stdio.h> int main() { FILE *fp; char c; fp = fopen(__FILE__,"r"); do { c = getc(fp); putchar(c); } while(c != EOF); fclose(fp); return 0; } Tags: C Program to Display its own Source Code as Output. ermskuthar manjeet singh kuthar own source code Facebook Twitter