Computers and Technology

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}

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, Devan6264
You need to write some code that responds to a text change in a jtextfield. how can you do that? create a class that implements the interface actionlistener and override the method textfieldchanged create a class that extends the superclass actionlistener and override the method actionperformed create a class that implements the interface actionlistener and override the method actionperformed create a class that extends the superclass actionlistener and override the method textfieldchanged
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, DRock4976
Which of the following is not contained on the slide show toolbar? a. next button b. slide button c. close button d. pen too
Answers: 2
image
Computers and Technology, 23.06.2019 11:50, itaheart101
While preforming before operation pmcs, you notice the front right tire appears slightly under-inflated. what is the proper action?
Answers: 3
image
Computers and Technology, 23.06.2019 15:30, jasssp
Write a program in plp assembly that counts up by one starting from zero (or one) inside a loop and writes this value to the leds every time the value is increased. the memory address of the leds is 0xf0200000. the table below shows the meaning and an example usage of the instructions covered in the video, plp instructions for project 1. instruction example usage meaning load immediate li $t0, 8 register $t0 is set to the value, 8. store word sw $t2, 0($t1) the value in register $t1 is used as the memory address. the value in register $t2 is copied into this memory address. add addiu $t4, $t3, 29 register $t4 is assigned the sum of 29 and the value in register $t3. jump j your_label_name the program jumps to the line following the label, "your_label_name: ". label your label name: defines a label called "your_label_name: " that can be jumped to
Answers: 2
Do you know the correct answer?
Given the union union
{ byte x; { x is an integer allocated in one byte}
float y; { y...

Questions in other subjects:

Konu
Mathematics, 12.03.2021 01:00