|
Synfire's Guide to C Programming |
Table of Contents
i. Introduction
1. Basic Structure
2. Standard I/O
3. Variable Basics
4. Conditional Statements
5. Program Control
6. Functions
7. Arrays
8. Character Arrays
9. File I/O
10. Struct
11. Pointers
12. Sockets
i. Introduction
This tutorial is just like the rest of my tutorials in that it is in-depth enough for the average newbie, but broad enough for a geek that wants to advance in another subject. C programming is a great choice for the modern programmer that wants to write anything from basic applications to advanced multi-user operating systems (Unix and Linux were both written in C). But before you start trying to code your own *nix flavor you will have to learn the basics.
In this tutorial I will start with how C source code looks and is layed out, along with a few basic but vital parts of C programming. The second section covers input/output basics. The third section will cover how to create and use variables. Sections 4 and 5 cover controlling the program based on certain environment changes. The first 5 sections fill the super basics, but you should not stop there, to create anything usefully you will have to learn everything in this tutorial.
Now if you have read and/or learned from my C++ tutorial you might notice that I have copied sections for this straight out of that tutorial. I did this mostly for a time saver. C and C++ are very similar but do have many different syntax, so be sure to read even the sections I've copied because I edited them to be C compatible instead of C++. But enough of that, on to the good shit...
|
|