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
Can a function argument have default value?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
what are the advantages of a macro over a function?
What is static and auto variables in c?
Why isnt any of this standardized in c?
What is the significance of c program algorithms?
how logic is used
List some basic data types in c?
Why does everyone say not to use scanf? What should I use instead?
Why is c so powerful?
What are qualifiers and modifiers c?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What are the 4 types of programming language?
Explain what happens if you free a pointer twice?
I have seen function declarations that look like this