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 difference between printf and scanf )?
What is the use of header?
State two uses of pointers in C?
Can a pointer be static?
What is difference between && and & in c?
Why do we use int main instead of void main in c?
What is the size of enum in c?
What are c identifiers?
Explain what header files do I need in order to define the standard library functions I use?
Is it cc or c in a letter?
How can you determine the size of an allocated portion of memory?
What is the difference between procedural and declarative language?
Explain the use of 'auto' keyword in c programming?
What is C language ?
List a few unconditional control statement in c.