Select all of the code segments that are the correct way to define a variable class as an array of 185 personal structures. struct personal {   int id; // id number char name[80]; };

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter10: Classes And Data Abstraction
Section: Chapter Questions
Problem 17PE
icon
Related questions
Question

C code Blocks

Select all of the code segments that are the correct way to define a variable class as an array of 185 personal structures.

struct personal {
  int id; // id number
char name[80];
};

 

Options:

a .personal class[185];
 
b. struct personal class[185];
 
c. typedef struct personal classStruct;
classStruct class[185];
 
d. typedef class[185];
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr