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
Get step-by-step solutions from verified subject matter experts
