Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What is the C programming equivalent of...

Name: Anonymous 2010-09-04 13:34

String newline = System.getProperty("line.separator");

Name: Anonymous 2010-09-05 12:36

>>25

#include <stdio.h>
#include <limits.h>

int main(void) {
    int C = INT_MAX;

    if (C++ > C)
        puts("Sepples. So good, The Sussman uses it.");
    else
        puts("Back to the imageboards, ``faggot''.");

    return 0;
}

Name: Anonymous 2010-09-05 14:14

>>26
How is (C++ > C) evaluated? If it's strictly left to right, it should be false for any value of C. You won't have to rely on integer overflow.

Name: Anonymous 2010-09-05 14:22

>>27
It's undefined behavior.

Name: Anonymous 2010-09-05 14:26

>>27
it is false for any value of C. hence I'm not ``relying'' on an integer overflow.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List