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

Working the C development cycle - C Tutorial

From the course: C Essential Training

Start my 1-month free trial

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…

Contents