Wednesday, September 17, 2008

DISPLAY SOURCE CODE AS OUTPUT -in c programming language

45. DISPLAY SOURCE CODE AS OUTPUT

#include"stdio.h"
void main()
{
FILE *p;
char ch;
clrscr();
p=fopen("raja.c","r");
while((ch=getc(p))!=-1)
putchar(ch);
fclose(p);
getch();
}

No comments:

Post a Comment

Thanks to given comments.......

My Blog List