Answer Posted / tpt
4001 = 1*2^11 + 1*2^10 + 1*2^9 + 1*2^8 + 1*2^7 + 0*2^6 +
1*2^5 + 0*2^4 + 0*2^3 + 0*2^2 + 0*2^1 + 1*2^0
binary:
1111 1010 0001
hex/binary
0 0
1 1
2 10
3 11
4 100
5 101
6 110
7 111
8 1000
9 1001
A 1010
B 1011
C 1100
D 1101
E 1110
F 1111
so the hexadecimal format would be:
FA1
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain how do you list a file’s date and time?
What is void main ()?
What is the argument of a function in c?
Where register variables are stored in c?
What is the use of sizeof () in c?
How do I get a null pointer in my programs?
Why does this code crash?
What is a #include preprocessor?
Is there anything like an ifdef for typedefs?
Does c have circular shift operators?
Differentiate between a for loop and a while loop? What are it uses?
What is the difference between scanf and fscanf?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
Why do we use stdio h and conio h?
What is #include conio h?