Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write and run a C program that performs the following: o Create two arrays of charecters each of size 100 o prompts the user to

Write and run a C program that performs the following: o Create two arrays of charecters each of size 100 o prompts the user to enter 2 strings and store them in the two character arrays o Passes the second string to a recursive user defined function named recursive_non_vowels_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 non-vowels in the string recursively. o Print the number of non-vowels (from inside the main) o Write a C function named IsSuffix that takes two input parameters ShortS and LongS of type char* (null-terminated C strings of characters) and determines if ShortS is a suffix of LongS ( ). If ShortS is 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. o In the main function, pass any two string to the function IsSuffix such that the first string is smaller than the second one, and print the result return by the function.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 10g Insider Solutions

Authors: Arun R. Kumar, John Kanagaraj, Richard Stroupe

1st Edition

0672327910, 978-0672327919

Students also viewed these Databases questions

Question

Q.No.1 Explain Large scale map ? Q.No.2 Explain small scale map ?

Answered: 1 week ago