CrazyEngineers
  • What's the output of this program?

    Leo

    Member

    Updated: Oct 26, 2024
    Views: 887
    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.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Home Channels Search Login Register