Oct 18 2010 07:37 PM 2278 8 Source Code Output rakeshrm3010 Write a program which produces its own source code as its output? abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 //File should be save as abhishek.cpp#include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file");... abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 #include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file"); else { do { c = getc (pFile); printf("%c",c); } while (c != EOF); fclose (pFile); } getch();return 0;} Answer Question Select Best Answer
Oct 18 2010 07:37 PM 2278 8 Source Code Output rakeshrm3010 Write a program which produces its own source code as its output? abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 //File should be save as abhishek.cpp#include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file");... abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 #include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file"); else { do { c = getc (pFile); printf("%c",c); } while (c != EOF); fclose (pFile); } getch();return 0;} Answer Question Select Best Answer
abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 //File should be save as abhishek.cpp#include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file");...
abhishekagarwal5110 Profile Answers by abhishekagarwal5110 Questions by abhishekagarwal5110 Feb 24th, 2011 #include #includemain(int arg, char *arr[]){ FILE *pFile; clrscr(); int c; pFile=fopen ("abhishek.cpp","r"); if (pFile==NULL) perror ("Error opening file"); else { do { c = getc (pFile); printf("%c",c); } while (c != EOF); fclose (pFile); } getch();return 0;}