Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
35% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
3
Posts with Downvotes
1
Downvoting Members
3
0 Endorsements
~4K People Reached
Favorite Forums
Favorite Tags
c++ x 4
Member Avatar for icygalz

computeCube function is correct, but the main function has a problem. Explain why it doesn't work and show how to fix it. Your fix must be to the main function only; you must not change computeCube. [CODE] void computeCube(int n, int* ncubed) { *ncubed = n * n * n; …

Member Avatar for icygalz
-3
180
Member Avatar for icygalz

[CODE]void findMax(int arr[], int n, int* pToMax) { if (n <= 0) return; // no items, no maximum! int max = arr[0]; pToMax = &arr[0]; for (int i = 1; i < n; i++) { if (arr[i] > max) { max = arr[i]; pToMax = (arr+i); } } } int …

Member Avatar for Narue
1
4K