Question: A C program declares three variables x , y , z , in that order. The first two are 1 6 - bit integers, and

A C program declares three variables x, y, z, in that order. The first two are 16-
bit integers, and the third a 32-bit floating point value stored in IEEE 754
representation. The variable x =16896, and y =817. Figure Q1a is a memory
dump of the area used to store data.
ss: 0FF0310342000331 FC CF
ss: 0FF8 CF 3103 CF FC 110042
ss: 10000000 CF 42 CF FC 0042
ss: 100800 CF CF 0042413031
Figure Q1a
i) State the memory locations in which x and y are stored. [4]
ii) Calculate the value of z, showing your working at each stage of the
analysis. [8]
iii) What is special about the number represented by 0x807fffff in IEEE
754 representation when performing floating point calculations, and
why would this be important when calculating distances in satellite
positioning

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!