Join Dan Gookin for an in-depth discussion in this video Adding a function, part of Learning C (2014).
- The C library is brimming with functions.…These functions do a lot of things, but perhaps…not everything you need for your programs.…Therefore, when necessary, you can…concoct your own C language functions.…In fact, most programs have dozens,…if not hundreds, of their own functions.…In this movie, I introduce you to the function.…You'll see how to set up and prototype a function,…how to call or access the function,…and how to bail out of a function early.…Like everything in the C language, a function…has a certain style, and various etiquettes must…be followed to add a function to your code.…
A function has a type, a name and arguments in parentheses.…The type is a value returned by the function, its output.…The name is a unique name that identifies the function.…The arguments are zero, one or more values…passed to the function, its input.…Here, the alpha function has no input…or output, which is valid in the C language.…Therefore, it's a void function.…Void is a variable type, which means…I have no variable type.…
- Understanding a C program
- Adding comments
- Using escape characters
- Working with values and placeholders
- Introducing variables
- Making a decision with if
- Adding functions
- Manipulating strings
- Building arrays
- Nesting structures
Skill Level Beginner
1. Getting Started
2. Programming Basics
3. Program Flow Control
4. Intermediate C Language Concepts
5. Advanced C Language Concepts
Next steps2m 11s
- 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.