Hello friends I am searching the Program to print source code as program output in C programming
Use this code, it is working for me.
#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; }