What's the output of this program?

Leo

Leo

@leo-ZJQlmh Oct 26, 2024
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<y)
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.

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform