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 many identifiers are there in c?
Why array starts with index 0
HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE
What is the purpose of sprintf() function?
what is calloc and malloc?
Study the Following Points: a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static 1. Which of the Following Statements are true w.r.t Bit- Fields A)a,b&c B)Only a & b C)Only c D)All
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
can we declare a function in side the structure?
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is page thrashing?
What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }
What is meaning of tree