Creating a program in C involves a step-by-step process, starting with a source code file, which is compiled into an object code file and eventually linked with C libraries to create a program. Understanding the program creation process is important to learning C, as well as knowing how to recognize warnings and errors and how to address them.
- [Instructor] Creating a C language program … requires three steps. … Write the source code file, … compile and link, and test run the program. … It sounds easy, right? … You start by writing source code. … Use a text editor, C language source code is plain text. … No fancy fonts or layouts. … The code runs top-down, … just as you read the text. … Save the source code file … with a .c file name extension. … This code is already written. … In fact, it's the Code::Blocks' skeleton you see … when you start a new blank project. … So step one is done. … Step two is to compile and link, … though both steps are combined … in modern compilers into a single process called build. … The compiler translates the source code … into object code. … The object code file retains the same name … as the source code file … but with a .o file name extension. … The linker takes the object code file … and adds the necessary C library file to make a program. … It's the libraries that contain the routines … that perform tasks for your specific computer …
- 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.