printf
#include <stdio.h> int main() { unsigned char u = 255; printf("%02X\n", u); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)