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

4 / 248

Write a program to check the bit is set or not.

Answer:

#include 

#include
using namespace std;
void main()
{
    unsigned int number;
    int result, position;
    coutnumber;
    coutposition;
    result = (number >> (position));
    if (result & 1)
      cout

Asked In :: Alcatel-Lucent

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here: