Home › Forums › C Programming › C program to display own source code as output › Re: C program to display own source code as output
March 14, 2008 at 5:39 am
#3276
Priyanka Rajput
Participant
MYFILE.CPP
1 2 3 4 5 6 7 8 9 | #include<stdio.h><br /> void main()<br /> {<br /> FILE *fp;<br /> fp=fopen("myfile.cpp","r");<br /> char ch;<br /> while((ch=getchar(fp))!=EOF)<br /> putchar(ch);<br /> } |