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 difference between fread and fwrite function?
What does *p++ do?
Explain high-order bytes.
How to set file pointer to beginning c?
What is the easiest sorting method to use?
What is the use of clrscr?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
Explain threaded binary trees?
What language is windows 1.0 written?
Combinations of fibanocci prime series
What is the meaning of c in c language?
What is a MAC Address?
What does sizeof int return?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
code for find determinent of amatrix