Question: 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

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_ed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!