subject

Consider the following statements:
struct nametype struct coursetype struct studenttype
{ { {
string first; string name; nametype name;
string last; int callnum; double gpa;
}; int credits; coursetype course;
char grade; };
};
studenttype student;
studenttype classlist[100];
coursetype course;
nametype name;
mark the following statements as valid or invalid. if a statement is invalid, explain why.
a. student. course. callnum = "csc230";
b. cin > > student. name;
c. classlist[0] = name;
d. classlist[1].gpa = 3.45;
e. name = classlist[15].name;
f. student. name = name;
g. cout < < classlist[10] < < endl;
h. for (int j = 0; j < 100; j++)
classlist[j].name = name;
i. classlist. course. credits = 3;
j. course = studenttype. course;

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 03:30, juliannxkim
Which group on the home tab allows you to add shapes to a powerpoint slide?
Answers: 1
image
Computers and Technology, 23.06.2019 03:50, dondre54
Q-1 which of the following can exist as cloud-based it resources? a. physical serverb. virtual serverc. software programd. network device
Answers: 1
image
Computers and Technology, 23.06.2019 10:00, uwunuzzles
How do i delete my account on this because i didn't read this agreements and also i put age at xd
Answers: 1
image
Computers and Technology, 24.06.2019 07:30, sunny644
John recently worked on a project about various programming languages. he learned that though procedural language programs are useful, they have disadvantages too. what is a disadvantage of programs written in procedural languages? a. programs do not represent data complexity. b. programs take more time to execute. c. programs are prone to security threats. d. programs do not interface with multiple platforms.
Answers: 3
You know the right answer?
Consider the following statements:
struct nametype struct coursetype struct studenttype
...

Questions in other subjects: