Write a C program which output is source code itself

C program to get source code of current program that is program itself 


#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();
}

3 comments:

Unknown said...

my name is also raja dude

Unknown said...

my name is also raja dude

Unknown said...
This comment has been removed by the author.