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 12:30
An atom's diameter is about 0.1 nanometer (1×10-9m), and a human hair is about 1×10-3m. how many times greater is a human hair than an atom's diameter? sorry pushed wronf button but this is math
Answers: 3
question
Computers and Technology, 22.06.2019 20:30
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
(, urgent need): how do i change my username
Answers: 1
question
Computers and Technology, 24.06.2019 18:20
Use a while-end loop in a script file to calculate the sum of the first n terms of the series: summation sign on the top n bottom k=1 : )^k * k^2 +5k)/3^k show the script file and the two results of n = 10 and n = 20.
Answers: 2
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, 09.02.2021 03:20
question
Mathematics, 09.02.2021 03:20
question
Mathematics, 09.02.2021 03:20
Questions on the website: 13722367