Question: C programming 1. Structures may contain variables of many different data typesin contrast to ___________ that contain only elements of the same data type. a)

C programming

1. Structures may contain variables of many different data typesin contrast to ___________ that contain only elements of the same data type. a) files b) arrays

c) constants

d) functions

2. What does the deck[52] array contain in the following statement?

struct card a, deck[52], *cPtr;

(a) card structure elements

(b) a structure elements

(c) *cPtr elements

(d) None of these

3. Which statement is false?

a) Structures are derived data types. b) Each structure definition must end with a semicolon. c) A structure can contain an instance of itself. d) Structures may not be compared using operators == and !=.

4. Which of the following is not a valid operation on a structure?

a) Assigning structure variables to structure variables of the same type.

b) Taking the address of a structure variable. c) Using the sizeof operator to determine the size of a structure variable.

d) Comparing structures of the same type with relational operators.

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!