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},

answer the following questions: (7x4=28 points) 1. Make the value of the

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!