3. Array and Strings. Please show the output result. (9*4 points = 36 %) Please explain how you get your answer shortly.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

3. Array and Strings. Please show the output result. (9*4 points = 36 %) Please explain how you get your answer shortly.

Post by answerhappygod »

3 Array And Strings Please Show The Output Result 9 4 Points 36 Please Explain How You Get Your Answer Shortly 1
3 Array And Strings Please Show The Output Result 9 4 Points 36 Please Explain How You Get Your Answer Shortly 1 (116.79 KiB) Viewed 46 times
3. Array and Strings. Please show the output result. (9*4 points = 36 %) Please explain how you get your answer shortly. If you just write the answer without explanation, you will only get 1 point maximum. int values[5] = { 0 }; for (int k = 0; k < 5; k++) values[k] = k * 2; cout << values[2] << endl; (b) cout << values[4] << endl; char words[] = "NCKUME"; (c) cout << sizeof(words[0]) << endl; (d) cout << sizeof(words) << endl; char name1[] = "C++"; char name2[5] = { 'C','+' }; (e) cout << namel << endl; cout << name2 << endl; char stars[2][50] = { "Woody", "Buzz Lightyear" }; cout << stars [1][1] << endl; (h) cout << stars[1] << endl; string myString = "ME"; (i) cout << myString.length() << endl;
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply