From the course: Complete Guide to C Programming Foundations

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Working the C development cycle

Working the C development cycle - C Tutorial

From the course: Complete Guide to C Programming Foundations

Working the C development cycle

- [Instructor] Creating a C language program requires three steps. Write the source code, compile and link, test run the program. You start by writing the 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 text. Save the source code file with the .c file name extension. This is an example of a typical C source code skeleton file, often used to start new projects. You see it here in a text editor, which is part of this integrated development environment or IDE. The next step is to compile and link. The compiler translates the source code into object code. The linker combines the object code with a C library, which creates the final program. In a modern IDE both compiling and linking are combined into a single process called build. The compiler is what creates the object code file based on the C language source code. Object code isn't a program, but rather tokens and shortcuts that help build the…

Contents