Browse Sections

C Programming

Latest Contributing Articles


Sequential and Random Access File Handling in C
A file handling in C tutorial detailing the use of sequential and random access files in C, along with examples of using the fseek, ftell and rewind functions.
Reading a Serial Port Using Windows
The latest versions of Windows do not allow direct access to the serial IO ports. This article describes how to read the serial port COM1 using C++ in Windows.
How To Configure an RS-232 Port On A PC To Read
Detailed guide on how to configure the serial port on a PC to enable it to read data from external devices, including details of the registers used.
Reading Information From a PC Serial Port
A home PC can be set up to read characters from an external device. Voltage considerations are discussed, as well as C/C++ code that will perform the information capture.
Introduction to 'For' Loops in C
The for loop is, in ANSI C like in other programming languages, a very important flow control mechanism which novice programmers usually have trouble understanding.
Implementing while Loops in C
How to construct an outer while loop which tests to see whether a program should exit based on user input.
Quicksort Using Arrays in C/C++
An alternative to bubble sorting or insertion sorting, the QuickSort algorithm is accessible from either C or C++ and can be used with many data types.
C Tutorial File Handling Commands
A discussion of using stdio.h to manipulate files to open, close and delete files, and read/write data to/from them for C programmers.
Swapping Techniques C Programming
When writing list management code, it is necessary to be able to swap data elements. This article looks at ways to use swapping techniques in C programming.