Question: 19.(4 pts) Given the following variable declarations and assignments, evaluate the C++ expressions shown. If the answer is a floating-point value, be sure to indicate



19.(4 pts) Given the following variable declarations and assignments, evaluate the C++ expressions shown. If the answer is a floating-point value, be sure to indicate as such by using a decimal point in the answer. Remember that evaluation proceeds from left to right following an order of precedence for the operations. int a 4, b 2, c 6,d float x = 4.0, z = 15.0; a) (4*8)%3 + d/31b b) d (d+1)/b*b 29.(4 pts) The input stream buffer for cin contains the following characters n represents the new line character): 24inHello AnThere 43 78in30 50 40. The reading marker is on the 2. What is the output to the terminal when the code segment below is executed? Place one character in each box. Hint: Variables text and ch repeatedly have their value changed as the input is read int m; int x; string text; char ch; cin >> m >> text >> ch; getline (cin,text,n) cin >> text >> ch ; cin.get (ch) cin >> x; cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
