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 |
Disadvantages of C language.
write a program to display all prime numbers
When should volatile modifier be used?
Why void is used in c?
what is inline function?
What is a char c?
write a program for even numbers?
1 1 1 1 2 1 1 3 3 1 1 4 6 4 1
What are the scope of static variables?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf("%d",i); }
Can a variable be both constant and volatile?
how to go with this?