Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   hi (http://www.go4expert.com/forums/hi-t1528/)

prem_may10 3Oct2006 17:11

hi
 
hi
This is premchand. I want to a program which gives the output as source code of the program

shabbir 3Oct2006 19:56

Re: hi
 
Here it comes

Code:

void main()
{
        FILE *fp;
        char ch;
        fp = fopen(__FILE__,"r");
        while((ch=fgetc(fp))!=EOF)
        {
                printf("%c",ch);
        }
        fclose(fp);
}



All times are GMT +5.5. The time now is 09:54.