Question: 1) Which of the following assignment statements will cause errors. Copy and paste it in C++ editor and verify the results. int a = 6;

1) Which of the following assignment statements will cause errors. Copy and paste it in C++ editor and verify the results. int a = 6; int b = 3; double c = 3.5; char e = 'd'; int f = 7; a = 4; a = 4.5; b = a + b; C = a + b; e = e; e = "h"; e = "def"; b = 3 / 5; 2) Calculate the result of the following equations. Use C++ editor to help you verify. Result Code a) 240 / 8 b) 19 / 3 c) 188 % 9 d) 9 % 9 e) 5 + 8.0 / 3.0 f) 3 + (4 * (2 + 2)) % 6 5 * 2 % 4 / 1 h) 4 / -9 i) 3 % 4 g) 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
