subject

5. 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(intj=0;j<21;j++) cout << name[j];

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:30, Machuco127
Some of the first computer games were created in the early 1970s by college students experimenting after hours to see what the were capable of doing.
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, Angelanova69134
Technician a says that a shop towel should never be used to clean around the flange area before replacing an automatic transmission filter. technician b says that a dimpled transmission fluid pan can be repaired. who is right
Answers: 3
image
Computers and Technology, 23.06.2019 22:30, reaganphelps3
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
image
Computers and Technology, 23.06.2019 23:00, GreenHerbz206
Computer programming is one type of what career
Answers: 1
You know the right answer?
5. Assume the following declarations: char name[21]; char yourName[21]; char studentName[31]; Mark t...

Questions in other subjects: