Get Off-Campus Placement Jobs Info !!!
Programs asked in Mettl Coding Round
Click To Practce List of Programs asked in Nagarro !!!

Program Discussion :: Bitwise Operator

Home > Programs > Bitwise Operator

7 / 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: