From the course: C Essential Training
Unlock the full course today
Join today to access over 22,500 courses taught by industry experts or purchase this course individually.
Working the C development cycle - C Tutorial
From the course: C Essential Training
Working the C development cycle
- [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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Coding your first program3m 18s
-
Challenge: Write your own code1m 5s
-
Solution: Write your own code1m 34s
-
Getting into the C language2m 29s
-
Reviewing code structure2m 56s
-
Working the C development cycle3m 11s
-
Challenge: Find and fix the bugs45s
-
Solution: Find and fix the bugs1m 38s
-
Exploring the preprocessor3m 25s
-
Understanding header files and libraries3m 19s
-
Adding comments2m 39s
-
Challenge: Build the foundation1m 13s
-
Solution: Build the foundation1m 30s
-
-
-
-
-
-