how to use showbits function?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is double pointer?

560


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

668


What are the advantage of c language?

554


Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]

634


what is the diffrenet bettwen HTTP and internet protocol

1393






What is the need of structure in c?

566


Explain what is the difference between #include and #include 'file' ?

585


What does return 1 means in c?

589


Can a variable be both const and volatile?

676


Who invented b language?

919


What is the concatenation operator?

614


What does c mean in standard form?

599


Once I have used freopen, how can I get the original stdout (or stdin) back?

629


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1507


How does selection sort work in c?

624