Posts

Showing posts from March, 2007

Bad start of a day !!

I had a meeting to attend at 8.30 am ,(which is veryyyyy early by my standards).So I left home by 7.40 am .I had to pay a fare of 6 Rs to travel from Vijaynagar to Majestic .I discovered that I had exact 6Rs and a 100 rupee note. There , I boarded a bus that was going to Richmond Circle . I was just hoping that the lady conductor would have the necessary change(The fare again being 6 Rs) :Usually when they dont ,they only pay u back the rest of the change after grumbling throughout the travel (which is also acceptable). But I was totally shocked when she asked the driver to stop the bus at some point and asked me to get off the bus ! I was in no point to argue and so got down,managed to get an auto and reach office.Ended up paying a couple of Rupees extra to the autowala as well --which is always the case,as they never have the exact change. The idea of a bus pass does not hold for ppl who dont travel regularly by bus. You shud have a smart card which actually simply deducts the fare,

Holi hai!!!

Image
Holi Celebrations at the Sun Office !!!

Using function pointers

I just wanted to check if i still remembered using pointers in C..Its been quite some time since i have used them,so I tried this simple program this morning ...and thought I'd post it .. #include void foo(){ printf("In foo \n"); } int bar(int i){ printf("In bar\n"); return(i+1); } typedef int (*gptr)(int); /* gptr is a function pointer which takes in an int and returns an int */ typedef gptr(*cptr)(gptr); /* cptr is a function pointer which takes in a function ptr of type gptr and returns a function ptr */ gptr cfunct( gptr pf){ gptr rf; pf(6); rf=bar; return(rf); } main(){ int ret; void (*fptr)(); int (*bptr)(int); gptr pfi,rfi; cptr cpfi; fptr=foo; (*fptr)(); bptr=bar; ret=(*bptr)(6); printf("Returned %d from bar\n",ret); pfi=bar; ret=pfi(6); printf("Returned %d from bar\n",ret); cpfi =cfunct; pfi=bar; rfi=cpfi(pfi); ret=rfi(8); printf("Returned %d from ba

UgraNarasimha Statue at Hampi

Image
In the foto from L to R : Amit,Pranesh,Sudhee,Shivaji and Rani,Priyanka(Mrs Amit :) ) ,Guru and Dakshina This foto is a reminder of the trip to Hampi when we went to Hospet to attend Ragya's wedding . We also went to the beautiful Tungabhadra dam in our 2 day visit.

2007 --first blog

Just thought that there was no entry this year ..so here i am scribbling something just to start it off and keep it updated .. Anything memorable :My last week trip to Surathkal and to the Udupi Krishna temple ,with ny sis and Dad . My dad wanted to go there to visit the temple,but my sis and I were also happy as we got to go to the beach.There's a beautiful temple near the Surathkal lighthouse and you can have a fabulous view of the sunset . I remember spending my time with friends there when I was studying at NITK .. So this time when I went there I took my sis along .While returning we ate the typical Surathkal Bhel (which has carrots,mango and beetroot!!!) --Its all the same ..The same ppl ,same taste ..nothing seems to have changed much ..the same quiet place --And i hope it stays that way .