Question
What is the value of the destination variable in the final assignment statement given: #define PI 3.14159 #define MAX_I 1000 double x, y; int a,
What is the value of the destination variable in the final assignment statement given:
#define PI 3.14159 #define MAX_I 1000 double x, y; int a, b, i; a = 7; b = 3; y = 2.00;
i = (MAX_I - 990) / a;
I tried -1, but it was counted wrong.
The feedback I received: Complete the operation in parentheses first.
When both operands of the division operation are integers, the resulting value is the trucated integer result of dividing the first operand by the second.
The destination variable, x, is a double so the value should be expressed to 2 decimal places.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started