Question: Which of the following lines contains a syntax error? struct datedm { int day; string month; }; int main() { } datedm date; date->month

 Which of the following lines contains a syntax error? struct datedm {  

Which of the following lines contains a syntax error? struct datedm { int day; string month; }; int main() { } datedm date; date->month = "July"; date.day = 27; // main program return 0;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The line containing the syntax error is C datemonth July Reason The code tries to access the mont... View full answer

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 Programming Questions!