C program which print its own source code as its output A+ A- Print Email C program : How to print own source code as output using c #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; } Output:
c programming samples about linux
ReplyDeleteUsing the terminfo database
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free. c program for lcm of two numbers
ReplyDelete