Question: Q 1 ) This task will get you used to using strings. Start by creating the String Hello as an array of characters terminated by
Q This task will get you used to using strings.
Start by creating the String "Hello" as an array of characters terminated by the null character
Print the string to the terminal with a label Char: to show how you made this string.
Next make a nd identical String but directly as "Hello" and print it with the label String:
Prompt the user by printing "Tell me your name Human."
Then, use fgets with the s placeholder to get a user's name as input.
Make your name have a limit of characters array size is in your declaration and fgets input.
To make your output match for checking, just use "Human" as your name.
Take note of how this results in an extra return being added keep it
Your normal output will look like this:
Char: Hello
String: Hello
Tell me your name Human.
Human
Hello Human
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
