how to use showbits function?
Answers were Sorted based on User's Feedback
Answer / p govind rao
convert a decimal to binary we should use showbit()
function or a normal program to convert decimal to binary .
showbit(7) gives 000000000000111 .
| Is This Answer Correct ? | 62 Yes | 18 No |
Answer / santhosh
showbit is a pre-defined function is used for showing the
decimal value converts to binary digits. For Example:
#include<stdio.h>
main()
{
int a = 10;
showbit(7);
return 0;
}
Output:
0000 0111
| Is This Answer Correct ? | 20 Yes | 51 No |
how to find a 5th bit is set in c program
Explain how do you print an address?
write a program to display numbers from 1 to 10 and 10 to 1?
What is the g value paradox?
write a progam to compare the string using switch case?
Why doesn't the code "a[i] = i++;" work?
What is meant by initialization and how we initialize a variable?
Write a program to print factorial of given number using recursion?
Write the control statements in C language
How do I use void main?
main() { int i,n=010; int sum=0; for(i=1;i<=n;i++) {s=s+i; } printf("%d",&s); getch(); }
5 Write an Algorithm to find the maximum and minimum items in a set of ‘n’ element.