Page 1 of 1

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

Posted: Fri May 20, 2022 6:30 pm
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 30 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