10 Common C Programming Mistakes & How to Fix Them
Is your C program crashing or acting weird? Here is a checklist of the 10 most common C programming errors—from missing semicolons to memory leaks—and exactly how to fix them.
Read article27 articles to explore
Is your C program crashing or acting weird? Here is a checklist of the 10 most common C programming errors—from missing semicolons to memory leaks—and exactly how to fix them.
Read articleLow-level system programming using C. Learn about system calls, direct memory manipulation, file descriptors, and interacting closely with the operating system for maximum control and performance.
Read articleLearn essential techniques to optimize your C code for maximum speed and efficiency. Explore profiling tools, compiler flags, data locality, algorithmic choices, loop optimizations, and more to make your C programs run faster.
Read articleLearn how independent processes written in C can communicate and share data on Unix-like systems using various Inter-Process Communication (IPC) mechanisms. Explore pipes, FIFOs, shared memory, and message queues with conceptual explanations and basic usage patterns.
Read articleConnect your C programs with the internet! Learn the fundamentals of network programming using the Berkeley Sockets API. Understand client-server architecture, TCP/IP, and master key functions like socket(), bind(), listen(), accept(), and connect() with practical C examples.
Read articleUnlock the power of concurrent execution in your C programs! Learn how to create, manage, and synchronize threads using the POSIX Threads (pthreads) library for improved performance and responsiveness. Covers thread creation, joining, mutexes, and common practices.
Read articleExplore complex subjects like multithreading, network programming, IPC, low-level systems, optimization, and debugging.
Read articleBreak out of the sandbox. Learn how to call C libraries directly from Racket using the Foreign Function Interface.
Read articleLearn essential error handling techniques in C to write robust and reliable software. This detailed guide covers return codes, the errno variable, perror(), assertions, and best practices for gracefully managing errors in your C programs.
Read articleC programming with function pointers! This comprehensive guide explains how to declare, assign, and use function pointers to create flexible and dynamic code, including practical examples and use cases like callbacks.
Read articleBitwise operations in C. This detailed guide covers AND, OR, XOR, NOT, left shift, and right shift operators, along with practical use cases for efficient low-level programming.
Read articleExplore the Graph data structures in C. Learn key terminology, understand different representations like Adjacency Matrices and Adjacency Lists, and master fundamental traversal algorithms: Depth-First Search (DFS) and Breadth-First Search (BFS).
Read articleNon-linear data structures with Trees in C. Learn essential terminology, explore Binary Trees and Binary Search Trees (BSTs), master traversal algorithms (DFS, BFS), and implement core BST operations like insertion, search, and deletion.
Read articleLearn how to implement fundamental Abstract Data Types (ADTs) - Stacks (LIFO) and Queues (FIFO) - in C using both arrays and linked lists. Understand their operations, applications, and trade-offs.
Read articleExplore the fundamental data structure: the Linked List in C. Learn how to create, insert, delete, traverse, and search nodes using pointers and dynamic memory allocation. Understand the advantages over arrays.
Read articleLearn about dynamic memory allocation using malloc(), calloc(), realloc(), and free() to manage memory on the heap effectively and avoid common pitfalls like memory leaks.
Read articleThis repository post compiles all the articles in our 'Intermediate C Concepts' series, covering dynamic memory, linked lists, trees, graphs, and more!
Read articleLearn how these special instructions are processed before compilation to include header files, define macros, and conditionally compile code, enhancing your C programming capabilities.
Read articleLearn how to interact with files in C! This detailed guide covers the essential aspects of file handling, including opening, reading from, writing to, and closing files, enabling your programs to work with persistent data.
Read articleLearn how to create your own custom data types in C using structures to group related data of different types and unions to store different data types in the same memory location.
Read articleThis crucial part of our series explains what pointers are, how they work with memory addresses, and introduces the fundamental concepts of memory management using pointers.
Read articleDiscover how to work with arrays to store collections of data and understand how strings are handled as character arrays in C. Learn about declaration, initialization, accessing elements, and basic string manipulation techniques.
Read articleLearn how to define and use functions in C to create modular, reusable, and organized code. This part of our Beginners guide covers function definition, declaration, calling, and different types of functions.
Read articleLearn how to use conditional statements (`if`, `else if`, `else`) and looping structures (`for`, `while`, `do-while`) to make your programs more dynamic and powerful.
Read articleContinue your C programming journey by learning about variables, fundamental data types (int, float, char, etc.), and the various operators used to manipulate data in C.
Read articleThis comprehensive series is designed for beginners with no prior programming experience. We'll cover everything from setting up your environment to understanding more advanced concepts, providing you with a solid foundation in C.
Read articleThis first part of our series introduces you to the C language, its importance, and guides you through setting up your development environment on Windows, macOS, and Linux.
Read article