WAP – represent a char in binary format
Answer Posted / vinayml
main()
{
char p = 'a' ;
int i = 0 ;
for( i = 0 ; i < 8 ; i++)
( p & (1 << i )) ?printf ("1"): printf("1");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Can we declare a function inside a function in c?
I need a sort of an approximate strcmp routine?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
Write a program to swap two numbers without using the third variable?
What are valid operations on pointers?
How can I insert or delete a line (or record) in the middle of a file?
What are types of preprocessor in c?
What are terms in math?
How do I round numbers?
How many main () function we can have in a project?
Is a pointer a kind of array?
How can you increase the size of a statically allocated array?
What is the difference between text and binary modes?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?