Bug fixing for simple C code, any C programmers?

Any C programmers out there who can fix a really annoying bug in a simple 10 line program?

ยป Here’s the C program that has the bug.

Ciao.

Advertisements

Baby with 2 faces born in north India

baby with two facesA baby with two faces was born in India yesterday. Her mother had a normal delivery and the baby is doing well. She’s being considered by the villagers as a reincarnation of the Hindu goddess Durga. The baby was named Lali. Her father is a 23-year old farm worker and mother a housewife.

Lali has a rare condition called Craniofacial Duplication, where a single head has two faces. She has duplicates of every facial organ except ears.

According to the Associated Press,

“She drinks milk from her two mouths and opens and shuts all the four eyes at one time,” Ali said.

Rural India is deeply superstitious and the little girl is being hailed as a return of the Hindu goddess of valor, Durga, a fiery deity traditionally depicted with three eyes and many arms.

Up to 100 people have been visiting Lali at her home every day to touch her feet out of respect, offer money and receive blessings, Singh told The Associated Press. “Lali is God’s gift to us,” said Jaipal Singh, a member of the local village council. “She has brought fame to our village.”

Read more here.

Earth Hour – a joke

On March 29, many people turned off the lights for an hour from 8pm to 9pm local time to signify that they were “saving” energy (whatever they mean by energy). Very nice, turn off your electrical gadgets for one hour, and then after 9pm, turn on the lights, air conditioners, office lights (maybe all night), flashing decorative lights (oh, these were probably never turned off!), various home gadgets, etc. And then get into the car and drive one block for a crate of coke, circle around the area for 10 whole minutes looking for a parking spot, <<INSERT THE REST HERE>>.

google earth hour arul johnAnd then, there was Google which jumped on the bandwagon by changing its background to black instead of the usual white.

The funny thing is that black background web pages may use up MORE energy than white background web pages and Google had itself acknowledged the study.

Anyway, Michelle Malkin has more about this and the 1 million phone calls that “eco-friendly” activists intend to make to lawmakers on Earth Day – wonderful way of saving energy indeed!

Read more on her blog here.

Google plays April Fool’s Day joke with Gmail Custom Time

I was about to login to my Gmail when I noticed Google’s “latest addition” – an option that allows the user to alter the timestamp of the email sent, to make it look as if the user sent the email at a different time.

Since I don’t trust anything on April 1, I decided this was Google’s joke for us all. I anyway took a look at the “testimonials” of those who had “used” the beta version of this. Well, those testimonials are fake, but hilarious! Read them:

“The entire concept of ‘late’ no longer exists for me. That’s pretty cool. Thanks Gmail!”
Miriam S., Delivery girl

“I used to be an honest person; but now I don’t have to be. It’s just so much easier this way. I’ve gained a lot of productivity by not having to think about doing the ‘right’ thing.”
Todd J., Investment Banker

Check it out here.