Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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