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:

Sourav Dash said...

my name is also raja dude

Sourav Dash said...

my name is also raja dude

sreenivas reddy said...
This comment has been removed by the author.