© 2023 Hashnode
#c-programming
In c language, Macros are used repeatedly whenever we want to use a piece of code or a single value in a program. once macros are defined in a program, they can be used frequently throughout the progr…
I recently had this task where I had to swap 2 integers, and man, didn't bugs have a field day? When I was almost giving up, everything clicked into place. I could almost swear a light bulb lit up som…
Developing a printf-like function is a very common programming exercise in C as it teaches you a lot about string formatting, memory allocation, and pointer manipulation. The printf( ) function in C…
Introduction Welcome to “The Practical C Programmer,” a blog series aimed at providing beginner developers with a comprehensive and accessible guide to learning the C programming language. The purpose…
So in week 1, we covered the basics of Shell like how to navigate and set permissions. We also got into using Git, Emacs and vi. Then in Week 2, we continued working on Shell projects from the first w…
In C program If, if else, switch statements are known as conditional statements. Conditional statements: are also known as Boolean expressions programs that return true or false on events and carry ou…
Variables My favorite description of a variable compares it to a package like a box with a name or label attached to it, for example, “Cotton material” or “Glass wear”, which has something inside, and…
Why and what is a Header file? A header file is a file that contains declarations for various structures such as functions, variables, macros, and other constructs used in C programs. The "#include" p…
Introduction: In this blog, we will be discussing a C program that implements a school grading system. This program takes the score of a student and outputs their grade and a message based on the rang…
A pointer in C is simply a type of data that we can use inside of programs. The way an integer data type will hold a number, a pointer data type holds a memory address. Now, this memory address has to…