When calling (or invoking) a function in C, when one of the parameters is an array, what do we need to pass to the function as the parameter?
Added by Kyle A.
Step 1
Let's think step by step. Show more…
Show all steps
Your feedback will help us improve your experience
Haricharan Gupta and 81 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
What kinds of circumstances would lead you to writing a function versus using a loop? please explain in simple terms
Haricharan G.
"Variable that are listed in function's calls are called Actual parameter Declared parameter Passed parameter None of them"
Sanchit J.
Write a recursive function called printArray() that displays all the elements in an array of integers, separated by spaces. The array must be 100 elements in size and filled using a for loop and a random number generator. The pseudo-code for this is as follows: // Pseudo-code for main // Instantiate an integer array of size 100 // Fill the array For (int i = 0; i < array.length; i++) Array[i] = random number between 1 and 100 inclusive printArray(integer array); // You are not restricted to a single parameter – use as many as you need // Pseudo-code for printArray() // Base Case If the array is empty, return // Recursive Case Else, print the next value in the array and then call printArray() to print the next value
Akash M.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Transcript
18,000,000+
Students on Numerade
Trusted by students at 8,000+ universities
Watch the video solution with this free unlock.
EMAIL
PASSWORD