Is Big Endian
Returns true if the computer architecture is Big Endian, false otherwise.
Controller: CodeCogs
Interface
C++
Excel
IsBigEndian
boolisBigEndian( | ) |
Example 1
- The following program displays whether the computer architecture is Big Endian
or not (the opposite would most probably be Little Endian, but there are also
other non-Big Endian architectures).
#include <iostream> #include <codecogs/computing/lowlevel/is_big_endian.h> using namespace std; int main() { cout << "Computer architecture is "; if (Computing::Lowlevel::isBigEndian()) cout << "Big Endian."; else cout << "Little Endian (or other non-Big Endian)."; cout << endl; return 0; }
Authors
- Lucian Bentea (August 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.