Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in c using pointer and arrays Manipulating strings using pointers Relationship between arrays and pointers O Problem Description Write and run a C program that
in c using pointer and arrays
Manipulating strings using pointers Relationship between arrays and pointers O Problem Description Write and run a C program that performs the following: Create two arrays of charecters each of size 100 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 RecursiveNonLetterCount 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 Non Letter Count recursively. Print the number of non-letter (from inside the main) Write a C function named Suffix that takes two input parameters Shorts and Longs of type char* (null-terminated C strings of characters) and determines if Shorts is a suffix (, a suffix of Longs, the function returns 1; otherwise, it returns 0. The sizes of the input strings are not passed as parameters. Assume that Shorts is guaranteed to be shorter than Longs. For example, if LongS is "C_programming_is_good" and Shorts is "good" or "ood", the function should return 1, while if Shorts is "Cprog" or "programming or "fun", the function should return 0. In the main function, pass any two string to the function Suffix such that the first string is smaller than the second one, and print the result return by the function If Shorts is .( ) of LongS o Sample Output Input your first string (without spaces): _ed Input your first string (without spaces): play_ed The number of Non Letter Countin the string play_ed is 1 The string _ed is a suffix of the string play_edStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started