EPAM Systems Interview Question

Write up logic in C to determine endianness.