Monday, November 29, 2010

Few of the famous codes written over the generations…. (to be updated as and when)

/* Developer: MOHANDAS_K */

if(slap)

return(other_cheek);

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

/* Developer: ISAAC_N */

for(;;action++)

reaction = -action;

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

/* Developer: ARINDHAM_C */

for(;;chicken++)

if(chicken != hatched)

count++;

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

/* Developer: LORD_KRISHNA*/

/* Reference Doc: ShrimadBhagavadGeeta */

malloc(current_tasks) && free(result);

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

/* Developer: J_Keats */

if(thing == beautiful)

{

for(;;)

{

thing = joyous;

}

}

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

/* Developer: Canara_Bank */

//This piece of code is now obsolete

grow()

{

serve();

}

serve()

{

grow();

}

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

/* Developer: Adidas */

public static final String impossible = “ ”;

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

/* Developer: Hammurabi */

if(eye)

return(eye);

if(tooth)

return(tooth);

//Objection_1: MohanDas_K

//Reviewer comments:

/* return() values like these will

eventually remove all variables */

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

/* Developer: Rajinikanth::Project:Baasha */

fun_speak(char* speaker, char* words)

{

int i;

char* baasha = “Rajinikanth”;

if(strcmp(speaker,baasha) == 0)

{

for(i=0;i<100;i++)

printf(“%s”,words);

}

else

printf(“%s”,words);

}

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

14 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. MOHANDAS_K needs revision...
    its

    if(slap)
    return(other_cheek);

    what you have written is MUNNA_MBBS's code

    ReplyDelete
  3. @Sharma: hey ya, by mistake... thanks man :)

    ReplyDelete
  4. hey boss, i have forgotten c, c++ with *, malloc n all yr.. n more over i don't really know the philosophies n slogans of Hammurabi, Canara_Bank, J_Keats.. still i did understand the rest of them.. please bring some masala in ur blogs yr.. am waiting for that 1 blog from you which has lots of excitement, romance, etc just like ur "pair of slippers outside temple"

    ReplyDelete
  5. Good one maga. Especially review comments from Gandhi on Hammuabi's code. :D

    ReplyDelete
  6. Nice one dude :) For the newton's law, you can also write

    if(action)
    reaction = -(action);

    isn't it?

    ReplyDelete
  7. @anoop dixith: thanks for replying to Vishwas Sharma;)

    @shamu : hmmm... i ll try to reach ur expection levels

    @VIkas: thanks maga :)

    @Mahith: yes man, it can be.. but i just wanted to stress on the part: "for EVERY action, ..." ..(on EVERY).. sooo wrote like that :)

    ReplyDelete
  8. hehe, yeah i guessed that. :) nice one! :)

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. while (true){
    printf("sooooooooooooperrrrrrrrr");
    }

    ReplyDelete
  11. brilliant ones maga. reminds me of my good old c-days dude.

    ReplyDelete