WAP – represent a char in binary format
Answer Posted / civa
#include <stdio.h>
main()
{
char p = 'a' ;
int i = 0 ;
for( i = 0 ; i < 8 ; i++)
( p & (1 << 7-i )) ?printf ("1"): printf("0");
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the best style for code layout in c?
What is meant by inheritance?
the question is that what you have been doing all these periods (one year gap)
What are header files and explain what are its uses in c programming?
Differentiate between calloc and malloc.
What is a keyword?
What is meant by realloc()?
What's the best way of making my program efficient?
What are the general description for loop statement and available loop types in c?
Why we use break in c?
Explain what is the concatenation operator?
what is the role you expect in software industry?
Did c have any year 2000 problems?
Explain About fork()?
What is variables in c?