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

Program Discussion :: Basics

Home > Programs > Basics

3 / 248

lets 32bit no. write a program to circular rotate 1 byte.
int y=0x01020304;
output y=0x04010203;



using namespace std;
#define INT_BITS 32
int leftRotate(int n, unsigned int d)
return (n > (INT_BITS - d));
int rightRotate(int n, unsigned int d)
return (n >> d)|(n 

Asked In :: Alcatel-Lucent

Post Your Answer Here:


Post Your Reply Here:


Post Your Reply Here: