Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming With Visual Basic .NET

Authors: Carsten Thomsen

2nd Edition

1590590325, 978-1590590324

More Books

Students also viewed these Databases questions