In this challenge, write code that determines which values are necessary for a function to process information. Crafting a function to carry out a specific task requires coordination between the function and the statement calling the function to ensure that the arguments are specified properly and meet the function's requirements.
(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. … …
- Writing your first C program
- Working the C development cycle
- Adding comments to code for clarity
- C language data types
- Declaring variables
- Making new data types
- Typecasting variables
- Using math, assignment, and logical operators
- Creating for and while loops
- Nesting loops
- Creating functions
- Returning values from functions
- Passing arguments to functions
- Creating recursive functions
Skill Level Intermediate
C: Data Structures, Pointers, and File Systemswith Dan Gookin2h 57m Intermediate
1. The Fundamentals of C
2. Variables and Values
3. Operators and Math
4. Decisions and Loops
Next steps1m 38s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.