Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Whats the final value of variables after all statements are executed? double a[ ] = {10.0, 5.0, 5.0, 15.0, 1.0}; double b[2] = {3.5}; double
Whats the final value of variables after all statements are executed?
double a[ ] = {10.0, 5.0, 5.0, 15.0, 1.0};
double b[2] = {3.5};
double c[ ] = {-1.0, -4.1, 1.0};
double *r, *q, *p;
void main(void)
{
p = c;
q = &a[4];
r = &b[1];
b[1] = a[0] = *(p + 1) + 5;
*(p+1) = *r + *q;
*p += *&a[2];
r--;
p++;
}
a[0] = ------- a[1] = ------ a[2] = -------
a[3] = ------- a[4] = ------ b[0] = -------
b[1] = ------- c[0] = ------ c[1] = ------- c[2] = -------
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