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

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
When working with a team you should always do the following, except? question 3 options: be dependable and trustworthy be sensitive to others feelings do your fair share critique members of the group
Answers: 2
question
Computers and Technology, 22.06.2019 16:30
What type of file does a cookie place on web site visitors' computers so that web site managers can customize their sites to their visitors' preferences?
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 2
question
Computers and Technology, 23.06.2019 17:00
Companies that implement and apply an information system effectively can create
Answers: 1
You know the right answer?
5. Assume the following declarations: char name[21]; char yourName[21]; char studentName[31]; Mark t...
Questions
question
Mathematics, 13.02.2021 01:00
question
Mathematics, 13.02.2021 01:00
question
Mathematics, 13.02.2021 01:00
question
Chemistry, 13.02.2021 01:00