Friday, February 4, 2011

C code 2!!

what is the output of

for(;0;)
printf("\n guess!!");



Answer: guess!!
Its because..a for loop will always do the initialization first and executes the loop's body...ONLY after executing the loops body once,it will check for the condition..
So..in this case ...it executes loop's body once..then it finds 0(ie .false) ,hence it quits but instead of 0,any other number is considered true, hence executes infinite number of times...

Saturday, January 22, 2011

Love at First Sight - - - 3

 
The India trip was all fun. The boat houses, the beaches, flower gardens were so exciting.  In Kashi, Rhea saw hooded woman bend pray and apply something on their forehead.  She tried doing that with her scarf. She felt so good.  She saw dad see her but she didn't react.  She remembered a friend saying "You look like an Indian with that... "   The entire India trip dad was actually silent.  She had seen him this silent, but today she saw some pain in his eyes. Rhea had never seen him like this before.

2 more days and they would be heading back to their nation when dad called Rhea. "I want to show you something today. You got no option but come with me..."  They traveled almost 45 minutes.  It seemed like some country-side.  They stopped in front of a pale yellow building.  May be it was an antic museum,  Rhea thought.  She silently followed dad and he asked the receptionist " I want to talk to Mother! Tell her, I am here to give a donation.  She will understand "  The receptionist took some time to understand his accent and she went to call Mother.

An old lady, in mid fifties, who was the owner of this Children Home, was fondly called Mother by everyone.  She sent a call for Siri as well to join them. Mother and Siri walked towards them and greeted Dad.  Siri came in, removed her spectacles placed them on a table and she eyed the girl standing next to the man.

They ran and hugged each other.  They embraced tightly.  This was indeed Love at First Sight.  They have never met before, they didn't even know the existence of each other but yet they couldn't stop smiling at each other.  Their bond was mysterious.  They cried in happiness.

"I never knew I had twin sister" sobbed Rhea.

Dad later explained how he had taken Rhea away from Siri in this Children Home 18 years ago.  Siri now understood her dream and hugged Rhea all the more tightly!

-----------------------------------------------------------------
The End...!! Hope you liked my First story! If yes... do drop a comment!! :)

Friday, January 21, 2011

Love at First Sight - - - 2

PART-1 can be read here!

"She was trying her best to catch those tiny fingers.  She crawled, she whined, she pushed herself up, she stretched her hands to the maximum...   She could just touch the tips of the fingers.. she tried to hold the entire palm... it was slipping away.   Please don't take her away from me...."

Siri woke up with a cry.  "The same stupid recurring blurred dream.. I never get to see who the kid is. !!"  She saw through the frosted glass window pane...  It seemed like a nice day!!  Today was submission for the drawing assignment she had given, with the topic "Love".  She was eagerly waiting for what each one had come up with.  She dressed up and glanced at the street end through the door.  Ram was already there.  She hurried and joined him.  She had never gone to the school without him. 

"A huge donation to be expected from an American family this December.. Did you know that??"

"Aww.. lovely news..!!  I need to buy so many things for my children..!!"

"Actually Mother told me you are gonna handle it!  Mother said, she didn't even talk much but they were ready to contribute a whole-sum amount.."

"I can handle this.. I will assure them this is the best thing they are doing in their life..!!  But why THIS interest suddenly??  Surprises me!"

"Darling.. not because you can handle it.  They wanted to talk to you.."

Siri was stunned for a minute.  She had too many things to worry about, so she didn't bother to add this to the queue.   They hugged and parted to their respective classrooms.  Piyush had come up with a drawing where a mother and father were kissing their child.  Aparna brought a picture of a family out for picnic flying kites.  Kavita drew Jesus and many kids beside him. How much these kids missed a home, a family.. Siri thought.


Thursday, January 20, 2011

Love at First Sight - - - 1

On a wonderful November day Rhea sat up, straightened herself "Calm down...!!  Else this will leave its marks on the cheeks."  She was crying.   She repented for picking up this strange pen kinda thing and trying it out on the Thanksgiving day.  She looked into the mirror.  She looked so beautiful.  Just one black pencil had done its magic on her.  She touched her face on the mirror and stared at it.  "Ahh.. Admiring yourself huh sweetie...Whose gonna do the table...???" came in her mom. "uhhh... no  mom.... coming... " she said.

She arranged the dinner and desserts on the table.  The turkey was as usual too huge to handle.  She chose to keep the champagne near her.  She knew dad liked to pop it off.  She was all set to meet Ami and receive compliments.  Ami was her best friend.

She wore a pink gown with three maroon frills, which was a little too flowery for her age but she carried it off well.  The three families greeted each other and Ami was gaping at her. 

"I bet there is something different today..!!"

"Come along, will show you what it is..." she took her to the room. 

"Presenting Kajal, a small color pencil which can enhance your beauty..!!"

"Uhh... I see... But the only No-make-up-girl in this world using this..??"

" I don't even know why i brought it... "  She was looking into the mirror again... 

"Why do you get that frozen look when you see yourselves in the mirror??"

 "I always feel strange when i look at myself.....!! It gets reminded of someone when i see myself . I hate to say this but i don't know who it is... That's what prompted me to buy this eye-color. " Rhea said..!!

The dinner went usual... except for the ending applause; when dad told everyone about their winter trip to India!  Everyone was so excited. Rhea was happy.  She was going to a country where her father was born. She was all keen to see the dancing peacocks, which were a part of every story dad told about his childhood!