[ create a new paste ] login | about

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

C, pasted on Oct 11:
1
2
3
4
5
6
7
8
9
#include <stdio.h>
#include <stdint.h>

int main(void) {
  uint8_t x = 0xff;
  unsigned y = ++((unsigned)x);
  printf("0x%x\n", y);
  return 0;
}


Output:
1
0x0


Create a new paste based on this one


Comments: