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

main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?

1 Answers   GATE,


Is python a c language?

0 Answers  


What is the function of multilevel pointer in c?

0 Answers  


triangle number finding program...

1 Answers   HCL,


what is the self-referential structure?

1 Answers  






Explain what is a stream?

0 Answers  


How to receive strings with spaces in scanf()

7 Answers  


how to write a program which adds two numbers without using semicolon in c

2 Answers  


What is #define size in c?

0 Answers  


What is volatile variable how do you declare it?

0 Answers  


How can I pad a string to a known length?

0 Answers  


Which of the following sorts is quickest when sorting the following set: 1 2 3 5 4 1) Quick Sort 2) Bubble Sort 3) Merge Sort

7 Answers  


Categories