Question: Consider the following code fragment.struct Date { int month;int day;int year;struct Student { string name;double gpa;Date d 1 ; } ;Student S 1 ;Date d

Consider the following code fragment.struct Date{int month;int day;int year;struct Student{string name;double gpa;Date d1;};Student S1;Date d2;Which of the following statement will cause a compilation error?O (a) S1.2.year=1972; b) S1.d1=1972;O c) d2.year=1972; d) Both (a) and (b)

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!