Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

6) What is the result of 56 % 5 7) what is the output of the following code? int

ID: 440509 • Letter: 6

Question

6) What is the result of 56 % 5 7) what is the output of the following code? int var1 =20; cout << var1--; cout << ++var1: 8)Which operation in the following will be performed first? c=++a/b+5 a.+=a b. a/b c.b+5 d. assignment to c 9)The endl manipulator _____________ a.Requires #include b. is used with cout to display a new line c. only works with cin d. all of the above

Explanation / Answer

6> 56 % 5 = 1 7> output: 20 20 explanation first var-- it is post decrement so cout will operate first then it decrement will take and in case of ++var it is pre increment so first increment then cout will take place 8>a 9>b

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote