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

What are the functions to open and close file in c language?

0 Answers  


What are type modifiers in c?

0 Answers  


how can i sort numbers from ascending order and descending order using turbo c..

1 Answers  


What is the difference between malloc() and calloc() function in c language?

0 Answers  


typedef struct { int i:8; char c:9; float f:20; }st_temp; int getdata(st_temp *stptr) { stptr->i = 99; return stptr->i; } main() { st_temp local; int i; local.c = 'v'; local.i = 9; local.f = 23.65; printf(" %d %c %f",local.i,local.c,local.f); i = getdata(&local); printf("\n %d",i); getch(); } why there there is an error during compiling the above program?

1 Answers  






How can I find out how much memory is available?

1 Answers   Persistent,


1)what are limitations for recursive function? 2)write a program to read a text file and count the number of characters in the text file

1 Answers  


write a program for odd numbers?

15 Answers  


What is the benefit of using const for declaring constants?

0 Answers  


What is a void pointer? When is a void pointer used?

0 Answers   Aspire, Infogain,


Can you write the function prototype, definition and mention the other requirements.

0 Answers   Adobe,


main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*

1 Answers  


Categories