= 5. Predict the output: char test[] = "weird characters"; string buf("Character''); buf +="COU" + "nt is: "; string buf

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: 899603
Joined: Mon Aug 02, 2021 8:13 am

= 5. Predict the output: char test[] = "weird characters"; string buf("Character''); buf +="COU" + "nt is: "; string buf

Post by answerhappygod »

5 Predict The Output Char Test Weird Characters String Buf Character Buf Cou Nt Is String Buf 1
5 Predict The Output Char Test Weird Characters String Buf Character Buf Cou Nt Is String Buf 1 (137.98 KiB) Viewed 28 times
= 5. Predict the output: char test[] = "weird characters"; string buf("Character''); buf +="COU" + "nt is: "; string buf2(test + 6, test + 16); cout << buf << buf2.size() <<"'<< buf2; (Notes 6.14, 6.16, 7.1, & 7.7) A. none – adding 2 pointers won't compile. B. Character count is: 10 characters C. Character count is: 10 weird characters D. count is: E. implementation dependent output 6. Predict the output if this code is slower is entered by the user: char a[32], b[32], c[32]; int x = scanf("\nt%31[^e]\n%31[a-s ]\n%31[^e]", a, b, c); printf("%d %s%s%s", x, a, b, c); (Note 7.3) A. 3 his code is slower B. 3 this code is slower C. 3 his code is slow D. garbage E. implementation dependent output
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply