Header files are brought into source code by using the #include preprocessor directive to help with function prototypes, variable definitions, and macros. Libraries contain the routines that make C language functions work for a specific hardware platform. It's important for a C programmer to know the difference between header files and libraries for them to fully understand the language.
- It's common for beginning C programmers … to confuse header files … with C language libraries these are two different things. … Traditionally, the header files are found … on a Unix system in the user include, subdirectory. … And there they are. … So when you use and include preprocessor directive … with angle brackets, … this is the location from which header files are fetched, … including the popular one here stdio.h. … The contents of these files are C language code. … You see definitions, … prototypes and processor directives listed. … Library files are traditionally located … in the usr lib directory. … And there they are. … When you create a C program, … the linker looks in this directory for libraries to link in, … such as the standard C library, … which contains definitions for C functions … such as printf and fopen. … These are object code files, … exactly like those created by the compiler. … They contain binary data, … not C language code. … Other locations are used … for header files and C language libraries, …
- 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.