This browser does not support JavaScript. In order to use this test, please update your browser to a JavaScript compatible browser, or choose the CGI version of this test. Internet Explorer browsers are updated by http://www.microsoft.com/ie/, and Netscape browsers updated by accessing http://www.netscape.com/
1. A structure called record which holds an integer called loop, a character array of 5 elements called word, and a float called sum, looks like
struct record { int loop; char word[5]; float sum; };
type structure record { loop : integer; word : array[0..4] of char; sum : real; };
type record { integer loop; char word[4]; float sum; }
2. The statement which declares a structure variable called sample, defined from a structure of type struct record, is
3. The statment that assigns the value 10 to the field loop of the sample structure (which is of type struct record), is
4. The statement that prints out (using printf) the value of the word array of the sample structure is
5. The correct definition for a structure called birthdays, whose fields are a structure of type struct time called btime, and a structure of type struct date, called bdate, is
birthdays { time btime; date bdate; };
struct birthdays { struct time btime; struct date bdate; };
struct birthdays { struct bdate date; struct btime time; };
©Copyright B Brown. 1984-1999. All rights reserved.