tag:blogger.com,1999:blog-959939550345671470.post3065741410194864325..comments2024-03-24T12:51:18.535+05:30Comments on C programming Interview questions and answers: DISPLAY SOURCE CODE AS OUTPUT IN C PROGRAMPriyanka kumarihttp://www.blogger.com/profile/08145649011863585828noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-959939550345671470.post-44393954253048477162015-11-05T03:51:11.426+05:302015-11-05T03:51:11.426+05:30you are closing the file in the while loop !you are closing the file in the while loop !Anonymoushttps://www.blogger.com/profile/14142803470574023531noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-78960791064594029622015-11-01T14:21:26.714+05:302015-11-01T14:21:26.714+05:30can we give file name dynamically in this program ...can we give file name dynamically in this program ?Unknownhttps://www.blogger.com/profile/06461280194946184505noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-371040221818681542014-04-06T11:57:02.228+05:302014-04-06T11:57:02.228+05:30please help me out with a C program for displayin...please help me out with a C program for displaying the contents of the file..and also adding the entered string to the file..!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-75062107576011820962013-08-08T15:29:58.017+05:302013-08-08T15:29:58.017+05:30frnd just replace "name of ur programe"...frnd just replace "name of ur programe" instead of "raja.c" in this code and try it will work...<br /><br />#include<br />int main(){<br />FILE *p;<br />char ch;<br />p=fopen("raja.c","r");<br />while((ch=getc(p))!=-1)<br />putchar(ch);<br />fclose(p);<br />return 0;<br />}Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-59001822230517750302013-05-28T15:22:58.624+05:302013-05-28T15:22:58.624+05:30And also for the lines too. please help me.And also for the lines too. please help me.TechGeekhttps://www.blogger.com/profile/05176719089316953581noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-83530573670454623912013-05-28T15:20:52.828+05:302013-05-28T15:20:52.828+05:30hi can you help me in getting a program for counti...hi can you help me in getting a program for counting paragraph from a file??TechGeekhttps://www.blogger.com/profile/05176719089316953581noreply@blogger.comtag:blogger.com,1999:blog-959939550345671470.post-39344579812493268242013-03-31T16:03:15.690+05:302013-03-31T16:03:15.690+05:30DISPLAY SOURCE CODE AS OUTPUT IN C PROGRAM
#inc... DISPLAY SOURCE CODE AS OUTPUT IN C PROGRAM <br /><br /><br />#include<br />int main(){<br /> FILE *p;<br /> char ch;<br /> p=fopen("raja.c","r");<br /> while((ch=getc(p))!=-1)<br /> putchar(ch);<br /> fclose(p);<br /> return 0;<br />}<br /><br />*********************************************8<br /><br /><br />hi, this program not given the correct Anonymoushttps://www.blogger.com/profile/01523202459085845026noreply@blogger.com