Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. What will be printed out when the following code is executed? Assume p starts with address 0x00C0 and the address returned by malloc is

image text in transcribed
5. What will be printed out when the following code is executed? Assume p starts with address 0x00C0 and the address returned by malloc is 0xFF00. float p = 11.0; p=p+ 2.0; float *q=&p; float *r=q; *r= *r + 1; int *s = (int *) malloc(sizeof(int)); *s = *q *q=*q* 10.0; *r= 15.0; printf("%f ", p); printf("%f ", *q); printf("%d ", r); printf("%d ",*s); printf("%f ", *r)

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

Data And Databases

Authors: Jeff Mapua

1st Edition

1978502257, 978-1978502253

More Books

Students also viewed these Databases questions

Question

I receive useful feedback about my performance.

Answered: 1 week ago

Question

I am encouraged to offer opinions/suggestions.

Answered: 1 week ago