From the course: C Essential Training

Unlock the full course today

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

Challenge: Writing a function

Challenge: Writing a function - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

Challenge: Writing a function

(upbeat music) - [Instructor] It's time for you to write a function. Use the source code provided in exercise file 05_03-challenge1 to get you started. This source code file lists calls to a function named line. The function isn't defined in the code, so your job is to write the line function. The functions job is to generate a line of 40 hyphens. The line function is a void type, which you can tell in the exercise file because it accepts no arguments and generates no output. This challenge can take up to 10 minutes to complete, but I bet you do it a lot faster.

Contents