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
What is the use of f in c?
Where are c variables stored in memory?
What is strcpy() function?
What does int main () mean?
Explain what is a static function?
Explain how can you avoid including a header more than once?
How do you sort filenames in a directory?
c program to compute AREA under integral
What is the default value of local and global variables in c?
Can include files be nested?
What is the use of structure padding in c?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
What are the different data types in C?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
Is c easier than java?