Follow by Email

Friday, June 10, 2011

DISPLAY SOURCE CODE AS OUTPUT IN C PROGRAM

#include<stdio.h>
int main(){
    FILE *p;
    char ch;
    p=fopen("raja.c","r");
    while((ch=getc(p))!=-1)
         putchar(ch);
    fclose(p);
    return 0;
}

No comments:

Post a Comment