1 2 3 4 5 6 7 8 9 10 11
#include <stdint.h> #include <stdio.h> int main() { int x; short y; x = -10; y = (short)x; printf("%d %hd", x, y); }