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 can I discover how many arguments a function was actually called with?

0 Answers  


code for concatination of 2 strings with out using library functions?

3 Answers  


Is this program statement valid? INT = 10.50;

0 Answers  


What are bitwise shift operators in c programming?

0 Answers  


What are the different file extensions involved when programming in C?

0 Answers  






how to multiply two number taking input as a string (considering sum and carry )

2 Answers   Wipro,


write a program to swap Two numbers without using temp variable.

75 Answers   EMC, Focus, GreyB, HCL, Hitech, HP, Huawei, Infosys, Mannar Company, Microsoft, Miles Software, Odessa Technologies, Satyam, TCS, Wipro,


Concat two string with most overlapped substring has to removeĀ  "abcd"+ "cdef" = "abcdef

6 Answers  


can v write main() { main(); } Is it true?

6 Answers  


What is local and global variable in c?

0 Answers  


What are conditional operators in C?

0 Answers   Adobe,


What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?

1 Answers  


Categories