[ create a new paste ] login | about

Link: http://codepad.org/lI8wYscd    [ raw code | output | fork ]

C, pasted on Jun 14:
1
2
3
4
5
6
7
8
9
10
11
12
#include <assert.h>
#include <limits.h>
#include <stdio.h>

int main(void) {
    signed int something = INT_MAX;
    printf("%d\n", something);
    assert(sizeof(char) != sizeof(int)); /* It's undefined in this case. */
    ++something;
    printf("%d\n", something);
    return 0;
}


Output:
1
2
2147483647
-2147483648


Create a new paste based on this one


Comments: