void findlyEx(int array, int len, int x); wen an array, its length, and a number x, print true if x is int main(void) { // Hey there, start typing your C code here.. the array and false otherwise. Test Cases structions: return e; O Test Case 1 1. In the code editor, you are provided with a main) function where you must ask the user for inputs and calls the findMyEx0 function. 2. This findMyEx) function is a function which accepts 10 Input 11- void findlyEx(int array, int len, int x) { 3456789 10 13 H the array, the array length, and the value of x, and should perform the functionality explained in the problem description above. 3. This function is only partially in Your No Output yimplemented as it lacks Output a base case. Your task is to add the base case needed by this recursive function. Expected True Output nut ur first input is the size of the array ur next inputs are the array of integers ur last inputs is x that you are going to look for in the ay O Test Case 2 O Test Case 3 456789 10 O Test Case 4

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter8: Arrays And Strings
Section: Chapter Questions
Problem 11PE
icon
Related questions
Question

Are You Here in a Function

Code in C language

Custom Input
Output
Tests
Executions
main.c
main.c
1. Are You Here in a Function
#include<stdio.h>
by Jay Vince Serato
CE Run Tests
3 void findMy Ex(int* array, int len, int x);
Given an array, its length, and a number x, print true if x is
in the array and false otherwise.
int main(void) {
// Hey there, start typing your C code here...
Test Cases
Instructions:
return 0;
O Test Case 1
1. In the code editor, you are provided with a main()
9 }
10
function where you must ask the user for inputs and
calls the findMyEx() function.
2. This findMyEx() function is a function which accepts
Input
11 - void findMy Ex(int* array, int len, int x) {
8
12
3 4 5 67 89 10
13 3
7
the array, the array length, and the value of x, and
should perform the functionality explained in the
problem description above.
3. This function is only partially implemented as it lacks
Your
No Output
Output
a base case. Your task is to add the base case
needed by this recursive function.
Expected
Output
True
Input
Your first input is the size of the array
O Test Case 2
Your next inputs are the array of integers
Your last inputs is x that you are going to look for in the
array
O Test Case 3
8
3-4-5-6-7-8-9-10
7
O Test Case 4
Output
O Test Case 5 Hidden
True or False
True
O Test Case 6
Hidden
Transcribed Image Text:Custom Input Output Tests Executions main.c main.c 1. Are You Here in a Function #include<stdio.h> by Jay Vince Serato CE Run Tests 3 void findMy Ex(int* array, int len, int x); Given an array, its length, and a number x, print true if x is in the array and false otherwise. int main(void) { // Hey there, start typing your C code here... Test Cases Instructions: return 0; O Test Case 1 1. In the code editor, you are provided with a main() 9 } 10 function where you must ask the user for inputs and calls the findMyEx() function. 2. This findMyEx() function is a function which accepts Input 11 - void findMy Ex(int* array, int len, int x) { 8 12 3 4 5 67 89 10 13 3 7 the array, the array length, and the value of x, and should perform the functionality explained in the problem description above. 3. This function is only partially implemented as it lacks Your No Output Output a base case. Your task is to add the base case needed by this recursive function. Expected Output True Input Your first input is the size of the array O Test Case 2 Your next inputs are the array of integers Your last inputs is x that you are going to look for in the array O Test Case 3 8 3-4-5-6-7-8-9-10 7 O Test Case 4 Output O Test Case 5 Hidden True or False True O Test Case 6 Hidden
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning