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 02:00
Think about some of the most memorable and forgettable games ever created. they can be games that were discussed in this unit or otherwise. what are some of the consistent factors that made certain games memorable to you? what were some of the consistent factors that made certain games forgettable to you? why? explain.
Answers: 1
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Knowing that the central portion of link bd has a uniform cross sectional area of 800 mm2 , determine the magnitude of the load p for which the normal stress in link bd is 50 mpa. (hint: link bd is a two-force member.) ans: p = 62.7 kn
Answers: 2
question
Computers and Technology, 23.06.2019 18:30
List 3 items that were on kens resume that should have been excluded
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, 29.04.2021 23:30
question
Mathematics, 29.04.2021 23:30
question
Mathematics, 29.04.2021 23:30
question
English, 29.04.2021 23:30
Questions on the website: 13722360