Question: C programming 5. What does the following statement do? struct card a = {Three, Hearts}; (a) It creates a variable card of type struct with
C programming
5. What does the following statement do?
struct card a = {"Three", "Hearts"};
(a) It creates a variable card of type struct with two members specified in the list. (b) It creates two variables named Three and Hearts of type struct card a. (c) It creates a variable a to be of type struct card and initializes it to the values in the list.
(d) It creates two variables named Three and Hearts of type struct card.
6. The ________ accesses a structure member via the structure variable name.
(a) structure member operator (.) (b) structure pointer operator (*) (c) structure arrow operator (->)
(d) none of these
7. Which statement is true? a) Often, typedef is used to create synonyms for the basic data types. b) Keyword typedef is used to create antonyms (or opposites) for the basic data types. c) Names for structure types are typically defined with typedef to create longer type names.
d) The first letter of each typedef name must be capitalized.
8. Let Bit1 = Bit2 = 1. Which of the following does not have the same result as the others?
(a) Bit1 & Bit2 (b) Bit1 | Bit2 (c) Bit1^Bit2
(d) ~(~Bit2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
