Saturday, October 24, 2009

change source code of same program

you can change source code of same program when run the program. Here it's program
to change the source code.
void main()
{
FILE *f;
char c;
clrscr();
f=fopen("file_name.c","w");
c=getchar();
while(c!=EOF)
{
fputc(c,f);
c=getchar();
}
getch();
}

if you run the program you can change the source code of the program. EOF means
end of file(press ctrl+z to end)

0 comments:

Post a Comment