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: Passing values

Challenge: Passing values - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

Challenge: Passing values

(upbeat music) - [Instructor] Your challenge begins with the exercise file 05_09-challenge1. It's missing the line function, therefore, your task is to write this function. The function is called in the main function and it has two arguments, an integer and a character. You must write code in the function to generate a line of characters. The number and type of characters are specified in the function, so the function call includes the arguments 35 and a hyphen, the function outputs 35 hyphen characters. This challenge to take you about 10 minutes to complete.

Contents