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 cohesion and coupling in c?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What does 3 periods mean in texting?
What are identifiers c?
What is %d used for?
What are the disadvantages of c language?
Why & is used in c?
Can you return null in c?
What do header files do?
What is main () in c?
What is table lookup in c?
What is a method in c?
What does the format %10.2 mean when included in a printf statement?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What happens if header file is included twice?