Answers for "c++ little endian or big endian"

C++
0

c++ little endian or big endian

if ( htonl(47) == 47 ) {
  // Big endian
} else {
  // Little endian.
}
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language