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

Explain is it valid to address one element beyond the end of an array?

0 Answers  


What are structure members?

0 Answers  


The file stdio.h, what does it contain?

0 Answers  


in one file global variable int i; is declared as static. In another file it is extern int i=100; Is this valid ?

4 Answers   Infosys, NetApp,


What is character set?

0 Answers  


what is the use of a array in c

6 Answers  


What is pointer to pointer in c?

0 Answers  


for(i=0;i=printf("Hello");i++); printf("Hello"); how many times how will be printed?????????

8 Answers  


regarding pointers concept

0 Answers  


How to delete a node from linked list w/o using collectons?

0 Answers   Zycus Infotech,


When is an interface "good"?

1 Answers  


What is structure padding ?

3 Answers   HP,


Categories