Question: C language Q1. Given int mark[5] = {19, 10, 8, 17,9}, answer the following questions: (7x4=28 points) 1. Make the value of the third element
![C language Q1. Given int mark[5] = {19, 10, 8, 17,9},](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2fb6befde5_10766f2fb6b7eedb.jpg)

C language Q1. Given int mark[5] = {19, 10, 8, 17,9}, answer the following questions: (7x4=28 points) 1. Make the value of the third element to -1.- 2. Make the value of element 4 to 0.- 3. Take input and store it in the 3rd element.-- 4. Take input and store it in the ith element- 5. Print the first element of the array.-- 6. Print ith element of the array.-- 7. Print all elements of the array using for repetition structure. Q2. Find the errors in each of the following code segments and correct it: (5x5=25 points) 1. #define SIZE=10; 2. Assume int A[10]= {0}, i; for(i = 1; i int main() { int values[5); printf("Enter 5 integers: "); for(int i = 0; i #define SIZE 10 _Findaverage (int); // complete the prototype of the function int main() { int marks[SIZE], i, n, sum = 0, average; printf("Enter %d integer numbers: ", SIZE); for(i=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
