[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Bitwise Operator

Home > Programs > Bitwise Operator

18 / 15

Write an efficient program to check the endianness of the machine

Answer:

#include 
#include
using namespace std;
int main ()
{
  unsigned int x = 0x76543210;
  char *c = (char*) &x; 
  cout

Asked In ::

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: