Answer (Choose 1 answer)
What will be the output of the following program?#include<stdio.h>
int fun (int arr[], int n)
{
int rs = 1;
for (int i=0; i<n; i++)rs *= arr[i];
return rs;
A. 24
B. 26
C. 27
D. 25
}
int main()
int a[3] = {2,3,4};printf("%d", fun(a,3));return 0;
}
FUS