Question: C++ Define an array of floating points Initialize values as 10.1, 20.2, 30.0, 40.0 Print the array values showing 3 decimal digits Define a pointer

C++

Define an array of floating points Initialize values as 10.1, 20.2, 30.0, 40.0 Print the array values showing 3 decimal digits Define a pointer to this array Print address of each array followed by value of each element using for loop

Repeat the same problem by defining pointer as an array. Pointer array points to address of each element element of the array. OUTPUT addresses and array contents.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!