how to set Nth bit of a variable?
Answer / 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 |
How can you find out how much memory is available?
What are the benefits of organizational structure?
What is identifiers in c with examples?
what are the compilation steps? ( i want inside the compiler )
what type of language is C?
What is the benefit of using const for declaring constants?
Where are some collections of useful code fragments and examples?
What is key word in c language?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
write a C program, given number is double without using addt ion and multiplication operator?ex:n=6,ans=12,pls send me ans to goviseenu@gmail.com
what is the need for main function in c?