#include <stdio.h> int main(){ int x1 = 18, x2 = -18; printf("%04X\n", x1); printf("%04X\n", x2); printf("%+04X\n", x2);}
Standard input is empty
0012 FFFFFFEE FFFFFFEE
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!