Thursday, September 04, 2014

C++ tips and tricks

char str[] = "hello world";
str[1] = 'abcd'; //str[1] stores d
auto i = 'abcd'; // 2^24*97 + 2^16*98 + 2^8*99 + 100

No comments: