Consider the following statements:
struct nametype struct coursetype struct studenttype
...
![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 02.08.2019 21:30 oofoofoof1
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](/tpl/images/cats/User.png)
Answers: 3
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
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](/tpl/images/cats/informatica.png)
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?
Questions in other subjects:
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/informatica.png)
![Konu](/tpl/images/cats/health.png)
![Konu](/tpl/images/cats/fizika.png)
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/mat.png)
Mathematics, 16.10.2020 06:01
![Konu](/tpl/images/cats/mat.png)
![Konu](/tpl/images/cats/istoriya.png)
![Konu](/tpl/images/cats/ekonomika.png)