0

What is the most complex line of code you stumbled upon?

And what is its use?

19th May 2017, 10:40 AM
Testing002
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.
19th May 2017, 10:47 AM
Testing002