[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 :: Basics

Home > Programs > Basics

108 / 279

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: