Skip to content


C Escape sequences, Hex and Octal

Simple post really, C/C++ escape sequences can include Hex (\xhhh) and Octal codes (\ooo), for example

printf("\135");
//or
printf("\0x5D");

Will both print the ] character (ASCII 93)

Posted in C/C++. Tagged with , , , .