Answer Posted / kirankumaryakkala
ex: int res=16, temp=1,n;
printf("enter the Nth bit no");
scanf("%d",&n);
temp=temp<<n; //leftshift to ntimes
res=res|temp; //bitwise OR
printf("setted nth bit of res %d",res);
| Is This Answer Correct ? | 9 Yes | 4 No |
Post New Answer View All Answers
Explain what is wrong with this statement? Myname = ?robin?;
how can use subset in c program and give more example
a program that can input number of records and can view it again the record
How is = symbol different from == symbol in c programming?
What is scope rule in c?
What is uint8 in c?
Are the variables argc and argv are local to main?
How does free() know explain how much memory to release?
What is the difference between #include and #include 'file' ?
What are the characteristics of arrays in c?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
List the different types of c tokens?
Can include files be nested? How many levels deep can include files be nested?
What is difference between %d and %i in c?
What is indirection? How many levels of pointers can you have?