Question: In programming languge C Question 3: (23p) Write a MAIN function and a FUNCTION to accomplish the following tasks. Within the MAIN function: Declare a
Question 3: (23p) Write a MAIN function and a FUNCTION to accomplish the following tasks. Within the MAIN function: Declare a character array STR with a size of 40. Declare a single character variable CH. Read CH and STR from the standard input. Pass CH and STR to the FUNCTION as arguments. Print the return value from the FUNCTION which is the number of times the single character variable CH appears in STR. Within the FUNCTION Compute and return the number of times of a single character variable CH appears in STR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
