[ create a new paste ] login | about

Link: http://codepad.org/cGZfv5L4    [ 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 char something = SCHAR_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
127
-128


Create a new paste based on this one


Comments: