hi
This is premchand. I want to a program which gives the output as source code of the program
|
Go4Expert Member
|
|
| 3Oct2006,17:11 | #1 |
|
hi
This is premchand. I want to a program which gives the output as source code of the program |
|
Go4Expert Founder
|
![]() |
| 3Oct2006,19:56 | #2 |
|
Here it comes
Code:
void main()
{
FILE *fp;
char ch;
fp = fopen(__FILE__,"r");
while((ch=fgetc(fp))!=EOF)
{
printf("%c",ch);
}
fclose(fp);
}
|