Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 8 Not yet answered which of the following code that: print odd if the max number in the array is odd, or print even
Question 8 Not yet answered which of the following code that: print "odd" if the max number in the array is odd, or print "even" if the max number in the array is even, using a function: Marked out of 1.00 P Flag question Select one: O a. void f3(int arr[], int size){ int max=aar[0]; for(int i=0;imax) max=arr[i]; if(max%2== 1)coutmax) max=arr[i]; if(max%2== 1)coutmax) max=i; if(max%2== 1)coutmax) arr[i]=max; if(max%2== 1)coutj) sum+=a[i][j]; O c. if(i= =j) sum+= a[i][j]; O d. if(i+j=size-1) sum+= a[i][j]; P Flag
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started