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 |
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why ca not I do something like this?
c program to manipulate x=1+3+5+...+n using recursion
write a programme that inputs a number by user and gives its multiplication table.
Why doesn't the code "a[i] = i++;" work?
write a proram to reverse the string using switch case?
how many keywords do C compile?
7 Answers Microsoft, Practical Viva Questions,
int arr[] = {1,2,3,4} int *ptr=arr; *(arr+3) = *++ptr + *ptr++; Final contents of arr[]
What is class and object in c?
What are data types in c language?
What language is lisp written in?
Explain can you assign a different address to an array tag?