Question: Using C Q7 Write a program that does the following i) Declares and initializes a char array sentencell-As is a tale, so is life: not
Using C

Q7 Write a program that does the following i) Declares and initializes a char array sentencell-"As is a tale, so is life: not how long it is, but how good it is, is what matters."; Prints each word and its length in a separate line ii) iii Gives an output as follows: As - 2 character(s) is 2 character(s). a 1 character(s). tale 4 character(s) so 2 character(s). is - 2 character(s). life: - 5 character(s). not 3 character s) how - - 3 character(s). long -- 4 character(s) it 2 character(s). is -- 2 character(s). but -- 3 character(s). how 3 character(s) good 4 character(s). it 2 character(s) is - 2 character(s). is - 2 character(s). what-4 character(s). matters 7 character(s)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
