WAP – represent a char in binary format
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / johnson
?eh? this doesn't make sense. The answer will obviously be
11111111.
Is This Answer Correct ? | 0 Yes | 0 No |
What are conditional operators in C?
Where define directive used?
What is a volatile keyword in c?
What are static variables in c?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
0 Answers Lovely Professional University,
How to implement variable argument functions ?
How important is structure in life?
What's the difference between DELETE TABLE and TRUNCATE TABLE commands?
Explain what is a const pointer?
What is the purpose of Scanf Print, getchar, putchar, function?
What is header file in c?
What is the data segment that is followed by c?