Predict the output of the following C++ statements:
int a = -5, b = 3, c = 4;
C+ = a+++ — b; .
cout<
Answered Feb 05, 2023
a = -4, b = 2 and c = 1
Output: i. 125 ii. 2 OR i. power(): It returns the value of a number raised to the power of another number. For example: Select power(5,3); Output: 125 ii. mod(): It returns the remainder of a number divided...
Correct Answer - (i) `tanx-x+C` (ii) `-cotx-x+C`
Correct Answer - (i) `2"tan"(x)/(2)-x+C` (ii) `-2"cot"(x)/(2)-x+C`
The output is a string “83”; String addition means concatenation.
It displays a message box with character ‘E’ from the fifth (4 + 1) place
The out Put is “04802828159”. That is the string “0480” concatenates(joins) the number 2828159. The output is a string not a number.
Output is 12. In this statement first it take the value of k in 5 then increment it K++. So first operand for + is 5. Then it becomes 6....
1. 15 2. 16
The output is “ADELINE”.
Output is 4. Result will be the memory size of floating point number
Install the Bissoy app to consult with a doctor.
Log in to ask questions, provide answers, or leave comments.