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 14:30
Including a space in the file name causes problems on all operating systems?
Answers: 1
question
Computers and Technology, 22.06.2019 16:20
Octothorpe is another name for what common computer keyboard symbol?
Answers: 1
question
Computers and Technology, 23.06.2019 02:30
What is the power dissipated by a resistor with a current of 0.02 a and a resistance of 1,000 ? a. 200 w b. 20 w c. 0.4 w d. 4 w
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the can apple do to fix this issue?
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
Biology, 21.05.2020 09:00
question
Mathematics, 21.05.2020 09:00
question
Social Studies, 21.05.2020 09:00
question
Social Studies, 21.05.2020 09:00
Questions on the website: 13722362