In C program Write a function bracket_ by_len that takes a word as an input argument and returns the word bracketed to indicate its length. Words less than five characters long are bracketed with << >> , words five to ten letters long are bracketed with (* *) , and words over ten characters long are bracketed with /+ +/ . Your function should require the calling function to provide as the first argument, space for the result, and as the third argument, the amount of space available. Consider the expected results of these calls to the function.For example:bracket_ by_len(tmp, "insufficiently", 20) "/+insufficiently+/"bracket_ by_len(tmp, "the", 20) "<>"
In C program
Write a function bracket_ by_len that takes a word as an input argument and returns the word bracketed to indicate its length. Words less than five characters long are bracketed with << >> , words five to ten letters long are bracketed with (* *) , and words over ten characters long are bracketed with /+ +/ . Your function should require the calling function to provide as the first argument, space for the result, and as the third argument, the amount of space available. Consider the expected results of these calls to the function.For example:bracket_ by_len(tmp, "insufficiently", 20) "/+insufficiently+/"bracket_ by_len(tmp, "the", 20) "<<the>>"
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images