Starting from:

$30

CSE114-Labwork 4 Solved

LABWORK 4 

 
In this program you are going to find the letters in a given string and copy them to another string recursively.

 

●     Function 1:  

○     Name of the function: is_letter

○ Return type of the function: int

○ 1. Parameter: char  

○ Checks if the character is a letter.

 

●     Function 2:  

○     Name of the function: letters

○ Return type of the function: void

○ 1. Parameter: Pointer to the destination string 

○ 2. Parameter: Pointer to the source string

○ This function will copy the letters from the source string to another string. Use recursion, do not use loop structures.

  

●     Main function:  

○     Write a main function to test your code, you do not need to take values from the user. You can manually create your array.  

 

Example Output: 

Input string : “mx90456453abxxx cxd,,,, fxxxxx xxgxxx”

More products