Qualcomm Interview Question

Write a c program to determine the Endianess of a microprocessor.