Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions