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, 21.06.2019 21:30
What elements related to the release and success of the nes console do you see in modern console releases? what elements are no longer relevant to modern console gaming?
Answers: 3
question
Computers and Technology, 22.06.2019 06:50
Match the personality traits with their description
Answers: 1
question
Computers and Technology, 22.06.2019 09:00
Which best describes the condition under which the unicode output is the same as plain text?
Answers: 3
question
Computers and Technology, 22.06.2019 19:30
Avariable definition defines the name of a variable that will be used in a program, as well as
Answers: 3
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, 12.03.2020 05:34
question
Mathematics, 12.03.2020 05:34
Questions on the website: 13722360