Answer Posted / santhi perumal
#include<stdio.h>
#include<conio.h>
int main()
{
int number;
int position;
int result;
printf("Enter the Number\n");
scanf("%d",&number);
printf("Enter the Position\n");
scanf("%d",&position);
result = (number >>(position-1));
if(result & 1)
printf("Bit is Set");
else
printf("Bit is Not Set");
}
| Is This Answer Correct ? | 18 Yes | 7 No |
Post New Answer View All Answers
What is the acronym for ansi?
What is the purpose of clrscr () printf () and getch ()?
i got 75% in all semester am i eligible for your company
What are types of preprocessor in c?
Write a program of prime number using recursion.
What is a stream?
Write a code to generate a series where the next element is the sum of last k terms.
What is the use of a ‘ ’ character?
Why is c called "mother" language?
explain how do you use macro?
How many levels of pointers can you have?
How will you delete a node in DLL?
What does 1f stand for?
What is the size of enum in bytes?
What are the advantages of using Unions?