how to use showbits function?

Answers were Sorted based on User's Feedback



how to use showbits function?..

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

how to use showbits function?..

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

Post New Answer

More C Interview Questions

How many identifiers are there in c?

0 Answers  


Why array starts with index 0

2 Answers  


HOW TO FIND OUT THE RREVERS OF A GIVEN DIGIT NUMBER IF IT IS INPUT THROUGH THE KEYBORD BY USING C LANGUAGE

3 Answers   Wipro,


What is the purpose of sprintf() function?

0 Answers  


what is calloc and malloc?

2 Answers  






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

3 Answers   Accenture,


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.

0 Answers  


can we declare a function in side the structure?

2 Answers   HCL,


Create a simple code fragment that will swap the values of two variables num1 and num2.

0 Answers  


What is page thrashing?

0 Answers  


What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }

4 Answers   ADITI,


What is meaning of tree

0 Answers  


Categories