What's the output of this program?

If you need a challenge then solve this, don't expect answer from me. I always stay busy. See what will be the answer of following code and why?

int main()
{
signed int x=-1;
unsigned int y=1;
if(x puts("Y is greater");
else
puts("X is greater");
return 0;
}

Whenever i will return i will post answer. Try to figure out what is problem till then.


WE HATE PIRACY.

Replies

You are reading an archived discussion.

Related Posts

Adrian Sutil nearly fetched Force India's second successive pole position before McLaren's Lewis Hamilton gatecrashed into his party in qualifying sessions for Sunday's Italian Grand Prix in Monza to settle...
Sri Lanka defeated India by a 139 run gap
Hi guys Welcome to CE polls.Vote for the best and explain your views about your favourite person and defend your opinion.
Hi Guys Welcome to this Poll Do you Think The prediction of the end of the world in 2012 according to Mayan,Nostradamus and many others.If you don't agree explain it...
CEans, CrazyEngineers has joined hands with BITS Pilani BOSM 2009 as their official media partner. Here's more about BITS Pilani BOSM 2009: Birla Institute of Technology & Science (BITS), Pilani...