Question: Using C Programming and #include Question 1 Write a function named printArray () to print the output for each element in the following array. int


Using C Programming and #include
Question 1 Write a function named printArray () to print the output for each element in the following array. int array[3] [3] = { {1, 2, 3}, {4, 5, 6}, {7, 8, 9} }; Question 2 Write a C program to add the number elements in two different arrays below and store the sum value in the third array int array1[5] {1, 2, 3, 4, 5}; float array2 [5] {0.1, 0.2, 0.3, 0.4, 0.5); float array3 [5]; Question 3 Modify your program in Question 2 above, swap the position of the values stored in array3 from the highest to the lowest and store those values in array4. = array3 array4 { 1.1, 2.2, 3.3, 4.4, 5.5 } [ 5.5, 4.4, 3.3, 2.2, 1.1 } Question 4 Write a C program to sort the numbers in the given array in ascending order. Store the sorted numbers in an array and print its output. Input: {5, -5, 3, -2, 0} Output: (-5, -2, 0, 3, 5} Question 5 Write a C function named counting101 () which accepts an arbitrary integer array int s[], count the number of occurrence "101" contained within that array and output the count on the console. Question 5 Write a C function named counting101 () which accepts an arbitrary integer array int s[], count the number of occurrence "101" contained within that array and output the count on the console. For example, 10101 shall output 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
