Displaying  Source Code(s)  
 

 
Program to write even and odd integers into different files.

--------------------------------------------------------------------------------

Description : this is the program to print the source code of the same
program it self,using file i/o
operations.this is the program executedin the linux operating system...


# include <stdio.h>
main()
{
FILE *fp1;
char ch;
fp1=fopen("source.c","r");
while((ch=fgetc(fp1))!=EOF)
printf("%c",ch);
fclose(fp1);
}

 

 

 

Contribute content or training reports / feedback / Comments
job placement papers
All rights reserved © copyright 123ENG