how to use showbits function?
Answers were Sorted based on User's Feedback
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 |
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 |
What are the functions to open and close file in c language?
What are type modifiers in c?
how can i sort numbers from ascending order and descending order using turbo c..
What is the difference between malloc() and calloc() function in c language?
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?
How can I find out how much memory is available?
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
write a program for odd numbers?
What is the benefit of using const for declaring constants?
What is a void pointer? When is a void pointer used?
Can you write the function prototype, definition and mention the other requirements.
main() { char ch='356'; Printf("%d",ch); } *OUTPUT*:- -18 *Why?*