Total Pageviews

Tuesday, December 13, 2011

C loves me...C loves me not...

#include<stdio.h>
#include<string.h>

int main()
{
    int i, n;
    char *x="Alice";
    n = strlen(x);
    *x = x[n];
    for(i=0; i<=n; i++)
    {
        printf("%s ", x);
        x++;
    }
    return 0;
}

Hi C programmers, the output of the above program should have been: lice ice ce e
but when compiled it gives the output as follows : Alice lice ice ce e

Could someone please explain?

Adios Noida!

A staccato end has arrived.Packing my bags now to leave this wonderful city.From sweltering and palling July to Dilli ki Sardi, Sinewy buildings to dilapidated roadside slums, I have seen it all.
Also from BITS side of my life, did seminars with pontification of professors and truanted a lot of office responsibilities as well. :)
Heard a lot of catch phrases like: ye to accha hai,ye to accha nai hai,ye to accha hua,ye to accha nai hua,ye to acchi lag rahi hai,ye to accha tha,ye to accha nai tha,ye to accha hoga.....and many more...
Free lunches are not free at all.Learnt to be a little foppish about dressing up from shivam and how to tesselate sarcasm within phrases from milind.Been a 10 pointer in this Internship semester #ShowOff_max.
And the other side of the coin,had some bad experiences as well.
Still noida will be missed badly.Hoping to frequent it once in a while.GIP,CSM,Atta Market,Shipra,Aditya Mall,Jaipuria (sucking) Mall,Pyramid and many more places.
Adios Noida!

Friday, December 2, 2011

Limn of a young man's life

Not my original, but couldn't agree more....

23-26 is certainly not a nice age for a man….
Your ex-gfs are getting married , Your career has just started, Elders treat you as unproven theorems, College guys feel that you are too old to have in there group.
You seem to enjoy both cartoon and news. You can no longer eat whatever you wish without putting on weight. You look like an ape if you don’t shave daily. You are not invited for weekend cricket matches.
Every Aunt you meet asks ‘Shaadi kab kar rahe ho beta!!’ while uncle asks ‘Career ka kya socha hai beta…?’. When the reality is that you are just riding the wave and going with the flow. You have all the confidence in the world but little achievements to show, You already have the first hand experience of the life, You know that whatever you have been taught about the world in schools has been sheer waste of time. You can be denied a job even after passing the test and you could be given a job if you know someone placed high enough. Politics till now was a dirty word but now you feel it everywhere.
You know now love is not that blind and that friendship has its terms and conditions. You know there is nothing for granted and free lunches are not free. Your overconfidence is now making way for a humble conscience. You now know it is not exactly what you thought it would be.