Question: Question 1: 10 Marks Write a program to count total number of times the value val appears in integer array arr of size count. For

Question 1: 10 Marks Write a program to count total number of times the value val appears in integer array arr of size count. For example, if arr[={1,2,3,4,1,2,4,4,4), count=9, and val=3 then output should be 1, since 3 appears only 1 time in array. Similarly, if val=1, then the output should be 2 as value 1 appears 2 times in array Note: Use only for loop in whole program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
