Latest Movie :
Home » , » Program to Print it’s Own Source Code

Program to Print it’s Own Source Code

{[['']]}


Here is a C program to print it’s own source code. That is the output of this program is exactly same as it’s source code. Here’s the program
#include<stdio.h>
char *program=”#include<stdio.h>%cchar *program=%c%s%c;%cvoid main()%c{%cprintf(program,10,34,program,34,10, 10,10,10);%c}”; void main()
{
printf(program,10,34,program,34,10,10,10,10);
}
Share this article :

Post a Comment

Feel Free to Say thanks Comment Here

 
Support : Creating Website | Johny Template | Mas Template
Copyright © 2011. SoftwareLibrary4u - All Rights Reserved
Template Created by Creating Website Published by Mas Template
Proudly powered by Blogger