Write a program for string


Problem:

Question: Write a code that allows the user to enter a phrase of multiple words into a string. Start by declaring a string of 101 characters called ‘mystr'. If you use the statement below to read a phrase from the user into the string, only the first word will be captured. For example, if the user enters "Good morning", only the word "Good" will be saved in the string since the ‘scanf' stops reading after the space character. scanf("%100s", mystr);

Please describe.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program for string
Reference No:- TGS0891092

Expected delivery within 24 Hours