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
Can a pointer point to null?
Is exit(status) truly equivalent to returning the same status from main?
Can the curly brackets { } be used to enclose a single line of code?
How can variables be characterized?
Which is more efficient, a switch statement or an if else chain?
What is data type long in c?
What does the c in ctime mean?
What is your stream meaning?
What is the difference between text files and binary files?
There seem to be a few missing operators ..
What are c preprocessors?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
Can you mix old-style and new-style function syntax?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What does node * mean?