From the course: C Essential Training

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Solution: Write your own code

Solution: Write your own code - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

Solution: Write your own code

(upbeat music) - [Instructor] Here you see my solution to the challenge where I've added a second puts statement to generate two lines of output. The first puts statement at line five, sends this line of text to standard output. This is my program. The second puts statement at line six, generates an additional line of text. And for the return value, I chose zero, meaning the program completed its task properly. Going to click the Build and Run button here, and you see the two lines of text generated here and the process returned zero. I hope your solution worked as intended. Remember, you need to output only one string of text, two strings was the bonus challenge. And if you did get to two solution programs right, great. As a review, the include directive brings in the stdio header file into the code. The main function is at line three, this is required for all C programs it's where execution starts. The functions…

Contents