Series: Introduction to C Language
Learn by tutorial examples
Learn the basics of the C programming language. We start with a gentle introduction to why C is such a useful and powerful language, and gradually introduce the various elements and structure of the language. This series of tutorial examples is by no means complete and only serves to get you moving in the right direction. Sufficient details are given so you can understand the MLC code on this site. However, it is anticipated that you may need to supplement the articles by using other references and sources of information.
- Getting Started Part One
- Jan 2026On-line references and the build process.
- main_1.c
- Jan 2026Your first C program to play with.
- readme.txt
- Jan 2026Compiler instructions for Linux, Windows and Mac.
- Getting Started Part Two
- Jan 2026Comments and Key Words.
- Getting Started Part Three
- Jan 2026Data Operators.
- Functions
- Jan 2026Defining and using functions.
- main_1.c
- Jan 2026The main() function.
- main_funcs.c
- Jan 2026Examples of C functions.
- Data Types Part One
- Jan 2026Basic C data types.
- main_data_types.c
- Jan 2026Examples of data types.
- Data Types Part Two
- Jan 2026More complex arrangements of your data.
- main_data_types.c
- Jan 2026Examples of data types.
- Pointers and Arrays
- Jan 2026How data is organised in memory.
- main_pointers_arrays.c
- Jan 2026Pointers and arrays.
- Flow Control
- Jan 2026How to make decisions.
- main_flow_control.c
- Jan 2026Decision, decisions, decisions ...
- Preprocessor Directives
- Jan 2026Changing how the code is compiled and supporting multiple platforms.
- main_preprocessor_1.c
- Jan 2026Example preprocessor directives.
- poor_include.c
- Jan 2026A bad way to use #include.
- some_header.h
- Jan 2026Header files.
- Source Code, Compiling and Linking
- Jan 2026Organising your source code and creating projects.
- trivial_maths.h
- Jan 2026Example header file.
- trivial_maths.c
- Jan 2026Example source file.
- main_source_headers_1.c
- Jan 2026Example sources and headers.
- Makefile
- Jan 2026GNU Makefile.
- win_makefile
- Jan 2026Windows nmake file.
- Input and Output
- Jan 2026User interaction through the console.
- main_input_output_1.c
- Jan 2026Input and output to the console.
- Summary
- Jan 2026To sum it all up.
- perceptron.c
- Jan 2026Putting it all together with your first machine learning program.