From the course: Complete Guide to C Programming Foundations

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

Challenge: Passing values

Challenge: Passing values

(upbeat music) - [Instructor] Your challenge begins with this exercise file. It's missing the line function, which draws a line of a specific character a given number of times. Your task is to code the line function. It has two arguments, an integer and a character, which is apparent from viewing the challenge source code. You must write the function to generate a line of characters. The number and type of characters are specified in the function. For example, if the function call includes arguments 35 and a hyphen, the function outputs 35 hyphens. This challenge should take you about 10 minutes to complete.

Contents