mark the following statements valid or invalid. (Assume the header file String.h has been included.)
a. i = 0;
while (firstName[i] != '\0')
{
cout << firstName[i];
i++;
}
b. cout << lastName;
c. if (firstName == lastName)
n = 1;
d. if (strcmp(firstName, lastName) == 0)
m = 8;
e. cin >> word;
f. lastName = word;
g. if (strcmp(NameString, "Hi") < 0)
n = 3;
h. if (firstName [2] == word[5])
m = 4;