WAP – represent a char in binary format
Answer Posted / 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 |
Post New Answer View All Answers
Explain how do you print only part of a string?
Why isn't it being handled properly?
write a c program to find the sum of five entered numbers using an array named number
The __________ attribute is used to announce variables based on definitions of columns in a table?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Explain high-order and low-order bytes.
what is different between auto and local static? why should we use local static?
Tell us two differences between new () and malloc ()?
In a switch statement, explain what will happen if a break statement is omitted?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
How do you define structure?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is the role of && operator in a program code?
What is d scanf?
The difference between printf and fprintf is ?