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
Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.
Differentiate between ordinary variable and pointer in c.
how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....
How can you tell whether two strings are the same?
What is the use of bit field?
What is context in c?
If the size of int data type is two bytes, what is the range of signed int data type?
Why c is called a mid level programming language?
What is wrong with this declaration?
What is a static function in c?
Where register variables are stored in c?
Do you know what are bitwise shift operators in c programming?
Explain the red-black trees?
differentiate built-in functions and user – defined functions.
Distinguish between actual and formal arguments.