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 { 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
The line containing the syntax error is C datemonth July Reason The code tries to access the mont... View full answer
Get step-by-step solutions from verified subject matter experts
