ACM EPP Review
  • Problems
  • Learn More About ACM

Arrays

    Brief Odd Sum Combine Remove Negatives Resources

Pointers and References

    Brief Passing by Reference Pointer Swap Array of Pointers Resources

Linked List

    Brief Print Insert Node Delete List Combine Lists Copy List Resources

Recursion

    Brief Print Summation Count Values Calculate Exponentials Resources

Data Structures

    Brief Car Wash Program Car Wash Files Resources

Files

    Brief Read & Write Array Assignment Reading and Writing Objects Odd Text Resources

Count Values

Given an array, create a recursive function to count the number of even numbers within the array. Hint: First, find and implement an appropriate base case for the function.

Use the following incomplete function definition:

int evens(int nums[], int size) {
    // . . .
}


Improve this page


  • ← Previous
  • Next →

ACM EPP Review 2018 | Powered by Jekyll Doc Theme