0
What is the most complex line of code you stumbled upon?
And what is its use?
1 Answer
0
bool endianness = *reinterpret_cast<int*>(const_cast<char*>("10")) & 1;
This returns the endiannes of the computer. It is based on the char '0' being 48 and '1' 49 in ASCII.