Skip to main content
GameDev.net gamedev.net
🔒 Locked

Strange Corners of C

Started by boogyman19946 Aug 6, 2015 at 10:50 PM 0 replies 4.3k views
Bacterius
Bacterius

#include <iso646.h>
#include <stdio.h>

int main(void)
{
    printf("%d\n", (1 xor 2) and (3 or not 5));
}
“If I understand the standard right it is legal and safe to do this but the resulting value could be anything.”

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.