Answer Posted / sumit kumar
Take the input 5 from keyword :-
#include<stdio.h>
main()
{
int num,pos;
printf("enter the no.:");
scanf("%d",&num);
printf("enter the position:");
scanf("%d",&pos);
if(num & (1<<pos))
{
printf("pos is set");
}
else
{
printf("pos is not set");
}
}
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is the -> in c?
what is the significance of static storage class specifier?
Explain the difference between #include "..." And #include <...> In c?
Why doesnt long int work?
What does 4d mean in c?
What are global variables?
What is strcmp in c?
Tell us bitwise shift operators?
Write a program to check prime number in c programming?
What is the code for 3 questions and answer check in VisualBasic.Net?
Differentiate call by value and call by reference?
Is array name a pointer?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is abstract data structure in c?
What is the difference between pure virtual function and virtual function?