Question: please solve this c program Exercise 3- Exercise Objectives Manipulating strings using pointers Relationship between arrays and pointers Problem Description Write and run a C
Exercise 3- Exercise Objectives Manipulating strings using pointers Relationship between arrays and pointers Problem Description Write and run a C program that performs the following o Create two arrays of character each of size 100 o prompts the user to enter 2 strings and store them in the two character arrays Passes the second string to a recursive user defined function named recusive_upper_case_count that takes an input parameter of type char* (null-terminated C strings of characters). The size of the input string is not passed as parameter. The function should return number of the upper case characters in the string. Print the number of upper-case character (from inside the main) o Write a C function named Is Prefix that takes two input parameters Smalls and Bigs of type char* (null-terminated C strings of characters) and determines if Smalls is a prefix ). a prefix of Bigs, the function returns 1; otherwise, it returns 0. The sizes of the input strings are not passed as parameters. Assume that Smalls is guaranteed to be shorter than Bigs. For example, if BigS is "Cprogrammingisgood and Smalls is "Cprog" or "Cpr" the function should return 1, while if Smalls is Clang" or "programming or "good", the function should return 0. In the main function, pass any two string to the function IsPrefix such that the first string is smaller than the second one, and print the result return by the function Sample run Enter the First String (without spaces) C_Prog Enter the Second String (without spaces) C Programming_is_good The number of upper-case characters in the string C_Programming_is_good is 2 The string C_Prog is a prefex of the string C Programming_is_good
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
