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
Is a pointer a kind of array?
Is there any data type in c with variable size?
What are the 32 keywords in c?
Difference between Function to pointer and pointer to function
What is c language & why it is used?
What is the main difference between calloc () and malloc ()?
Differentiate between declaring a variable and defining a variable?
what is the height of tree if leaf node is at level 3. please explain
Write a Program to accept different goods with the number, price and date of purchase and display them
Can the curly brackets { } be used to enclose a single line of code?
How can I recover the file name given an open stream or file descriptor?
What are the header files used in c language?
how many key words availabel in c a) 28 b) 31 c) 32
What is pointer & why it is used?
what is the role you expect in software industry?