Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What is wrong with my program? Thanks. Your job is to find the length of the longest word in a text with no punctuation or
What is wrong with my program?
Thanks.
Your job is to find the length of the longest word in a text with no punctuation or special characters of any kind - only contains words. To do so, please write a C-program that takes as a input first the number of words in a text, followed by all of the words in the text. The output of your program should be the length of the longest word in the text. To simplify your program, you can assume that the longest word will not exceed 100 characters. Examples Input: 14 This is a simple example text we have to find the largest word length Output: 7 Input: 7 All cats are grey in the dark Output: 4 Warning: You will be graded on your output, so do not include any print statements that prompt a user for input. Note You may submit as many solutions as you wish. Only your highest score will be kept. STATEMENT SOLVE HINTS Codel x + 1 #includeStep 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