Question: I just have a few quick questions. So first, I was wondering how do I go about creating these? I was thinking of making a

 I just have a few quick questions. So first, I was

I just have a few quick questions. So first, I was wondering how do I go about creating these? I was thinking of making a new object in the function, copying the int array(The original called object) to the newly declared int array, looping through the copied array to add 1 to each digit, then returning the object I declared in my function. Then for the second, it's a similar process, but I return the original object used rather than the new one I copied to. Is this a fair way to think about it??

Also, I was wondering why does the postincrement operator takes an int paramter while the other doesn't? What is this int for? Thanks! If you need more info, let me know!

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!