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
How many levels of pointers can you have?
What is the scope of an external variable in c?
What is malloc and calloc?
write an algorithm to display a square matrix.
Explain void pointer?
What does sizeof function do?
Why doesnt the call scanf work?
What is a far pointer in c?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
What is structure padding and packing in c?
What is function what are the types of function?
Why C language is a procedural language?
In which header file is the null macro defined?
Difference between goto, long jmp() and setjmp()?
How is a null pointer different from a dangling pointer?