Question: 2 3 4 > Owner > Desktop > chapter11-2> ex42.cc 56789 10 11 12 13 42. Rewrite the following code fragment using array notation

 2 3 4 > Owner > Desktop > chapter11-2> ex42.cc 56789 10  

2 3 4 > Owner > Desktop > chapter11-2> ex42.cc 56789 10 11 12 13 42. Rewrite the following code fragment using array notation instead of pointer notation: void display(int *a, int n) { while (n) { std::cout < < a < < " "; a++; n--; } } std::cout < < ' '; Produce a complete C++ program that tests your function!

Step by Step Solution

3.45 Rating (148 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Here is the modified code fragment using array notation instead of pointer notation cpp ... View full answer

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 Programming Questions!