Pages

Monday, February 17, 2014

Program which produces its own source code as output.

This c program produces its own source code as its output
such a program is called a quine.This kind of program takes no input and produces a copy of its own source code as its only output.


#include <stdio.h>
int main(){
FILE  *fp;
char c;
fp=fopen(_FILE_,"r");
do{
       c=getc(fp);
       putchar(c);

}while(c!=EOF)

fclose(fp);
return 0;

}


output

#include <stdio.h>
int main(){
FILE  *fp;
char c;
fp=fopen(_FILE_,"r");
do{
       c=getc(fp);
       putchar(c);

}while(c!=EOF)

fclose(fp);
return 0;

}


Thursday, February 13, 2014

Google's Goglogo

Its a very interesting and entertaining application.Goglogo is a Google logo maker. It allows you to create Google style search engine for yourself. You can use your name or any name of your choice in place of google.
I tried this trick and it works fine.Its fun.I am sure you will like it too.

Follow following steps.
















2.Enter your name or name of your choice.
3.Click on create my search page now.