Assume the following declarations:
char name[21];
char yourName[21];
char studentName[31];
Mark the following statements as valid or invalid. If a statement is invalid, explain why.
a. cin >> name;
b. cout << studentName;
c. yourName[0] = '\0';
d. yourName = studentName;
e. if (yourName == name)
studentName = name;
f. int x = strcmp(yourName, studentName);
g. strcpy(studentName, name);
h. for (int j = 0; j < 21; j++)
cout << name[j];
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.