HW8_S10 - SIZEOF MyStruct return? e. Write an expression...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Homework 8 Problems – due Monday, May 17 th The following problems relate to Chapter 10 in your text: 1. Create a structure named MyStruct containing the following 5 fields: field1 – a single doubleword field2 – a single word field3 – a single byte field4 – a 6-byte array field5 – a 10-doubleword array 2. The following problems relate to MyStruct structure in Problem 1: a. Declare a MyStruct variable that initializes field1 to zero b. Declare a MyStruct variable that initializes field4 to zero c. What value does the expression TYPE MyStruct return? d. What value does the expression
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: SIZEOF MyStruct return? e. Write an expression that returns the number of bytes in field4 of MyStruct return? 3. Write the code to retrieve the values of wYear , wMonth and wDayof Week fields from SYSTEMTIME STRUCT in section 10.1.4. 4. Write a macro named mGetChar that receives a single character from a user input to the keyboard and puts in the AL register. 5. Write a macro named mDisplayRandom that generates a 32-bit pseudorandom integer in the range of 0 to FFFFFFFFh and writes it to the console window....
View Full Document

This note was uploaded on 09/08/2010 for the course CMPE 46 at San Jose State University .

Page1 / 2

HW8_S10 - SIZEOF MyStruct return? e. Write an expression...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online