What type do these variables have?
Given the structure type and variable definitions
```
struct ShoeSize
{
char width;
int number;
};
struct ShoeType
{
char style;
ShoeSize size;
double price;
};
ShoeType shoe1, shod2;
```
a) shoe1.style
b) shoe2.size
c) shoe1.size.width
d) shoe2.price
e) shoe1.size.number
a) char, b) ShoeSize, c) char, d) double, e) int.
a) The type of the style member in struct ShoeType is char. b) The type of the size member of struct ShoeType is ShoeSize. c) The member shoe1.size has type ShoeType, the width member of ShoeType has type char. d) The member shoe1.size has type ShoeType, the number member of ShoeType has type int.
You might also like to view...
Critical Thinking QuestionsCase J-2Jason is part of a class learning to use Dreamweaver to include dynamic content on web pages. One of Jason's classmates is confused about the differences between behaviors, actions, and events. How should Jason describe actions to his classmate?
A. Actions are special effects on a web page. B. Actions are sets of instructions. C. Static elements. D. Actions are not seen by the user.
Each computer in a workgroup takes care of its own user account and security setting.
Indicate whether the statement is true or false.
Answer the following statements true (T) or false (F)
1) A foreign key must reference a primary key in another table, and both keys must have same column name. 2) If you try to enter value ‘Database’ in a CHAR(4) column, only ‘Data’ will be stored in it. 3) Value ‘Basketball’ will be stored with five trailing spaces in a VARCHAR2(15) column. 4) A composite primary key can be defined at table level only.
Routers send ICMP Redirect messages to hosts to indicate that a preferable route exists.
Answer the following statement true (T) or false (F)