subject

Given the union union
{ byte x; { x is an integer allocated in one byte}
float y; { y is allocated in 2 bytes}
}
and assume that y is assigned the number 8.25 that it is allocated in 2 bytes; one for the mantissa, and one for the exponent. What will a program print out for x just after an assignment is made to y.
{Hint: assume that any floating number is represented as follows: Convert the floating number to binary, move the binary point such that the mantissa is as follows (0.1….) 2 and the exponent is adjusted accordingly. For example the number that has the mantissa (0.1100….) 2 and the exponent (10)2 is equivalent to (0.11 X 2^ 10) 2 which is equivalent to (0.75 X 4 = 3.0) 10}

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
Create a pseudocode design to prompt a student for their student id and the titles of the three classes they want to add. the solution should display the student’s id and a total bill. • bill a student using the following rules: o students can only add up to 3 classes at a time.
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
Jason needs to learn a new web tool. he went through his books to understand more about it. now he wants hands-on experience with using that tool. what would him? jason can use websites where workspace is provided to test the results of your code.
Answers: 2
question
Computers and Technology, 23.06.2019 12:20
When guido van rossum created python, he wanted to make a language that was more than other programming languages. a. code-based b. human-readable c. complex d. functional
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
*! 20 points! *jeff wants to create a website with interactive and dynamic content. which programming language will he use? a. dhtml b. html c. css d. javascript
Answers: 1
You know the right answer?
Given the union union
{ byte x; { x is an integer allocated in one byte}
float y; { y...
Questions
question
Mathematics, 18.03.2021 03:50
question
Arts, 18.03.2021 03:50
question
Mathematics, 18.03.2021 03:50
question
Mathematics, 18.03.2021 03:50
question
Mathematics, 18.03.2021 03:50
question
Mathematics, 18.03.2021 03:50
question
Mathematics, 18.03.2021 03:50
Questions on the website: 13722359