Computers and Technology

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];

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:40, malibu777
Design a pos circuit that displays the letters a through j on a seven-segment indicator. the circuit has four inputs w, x, y, and z which represent the last 4 bits of the uppercase ascii code for the letter to be displayed. thus, if wxyz = 0001 then "a" will be displayed. (any answer with 22 or fewer gates and inverters, not counting any for the inputs, is acceptable)
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, silvijaaa
The two main ways in which marketers address the competition with their strategies are by satisfying a need better than a competition and by
Answers: 2
image
Computers and Technology, 23.06.2019 22:20, Izzyfizzy
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
image
Computers and Technology, 24.06.2019 13:50, jaystarr9395
Write a program that performs a simple n-body simulation, called "jumping leprechauns." this simulation involves n leprechauns, numberd 1 to n. it maintains a gold value g_i for each leprechaun i, which begins with each leprechaun starting out with a million dollars worth of gold, that is, g_i = 1000000 for each i = 1,. in addition, the simulation also maintains, for each leprachaun, i, a place on the horizon, which is represented as a double-precision floating point number, x_i. in each iteration of the simulation, the simulation processes the leprachauns in order. processing a leprachaun i during its iteration begins by computing a new place on the horizon for i, which is determined by the assignment:
Answers: 3
Do you know the correct answer?
5. Assume the following declarations: char name[21]; char yourName[21]; char studentName[31]; Mark t...

Questions in other subjects:

Konu
Biology, 04.12.2020 21:10
Konu
Mathematics, 04.12.2020 21:10
Konu
Mathematics, 04.12.2020 21:10