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

Array is an lvalue or not?

843


to find the closest pair

2051


What is bubble sort technique in c?

760


Explain low-order bytes.

808


What are the different types of control structures in programming?

875


Why is c called c not d or e?

837


Explain a pre-processor and its advantages.

838


What are the advantages and disadvantages of a heap?

911


What is the purpose of main( ) in c language?

868


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

821


What is the mean of function?

848


What is the difference between test design and test case design?

1810


What is #ifdef ? What is its application?

847


What is the difference between union and structure in c?

768


What is the meaning of typedef struct in c?

800