Category Archives: C

C Comments

Prerequisite – C Language Introduction C comments explain code and improve readability. These do not affect program execution. You can use comments in C to clarify code and describe algorithms. There are two types of comments in C: single-line (//) commnets and multi-line (/* */) comments. 1. Single-line comments start with “//” and end at the end of the… Read More »

C Programming Language Standard

Prerequisite – C Language Introduction The C programming language has various versions: C89/C90, C99, C11, and C18. C89/C90: Released in 1989/1990. It introduced key language features. C99: This brought new features like variable-length arrays and complex numbers. C11: This added _Generic, static_assert, and library updates. C18: It is latest standard, with clarifications and updates. Advantages: 1. Efficiency: C… Read More »

Features of C Programming Language

Prerequisite – C Language Introduction C is a simple language made in 1972 by Dennis Ritchie. It’s for system programming. C has low-level memory access, basic keywords, good for systems like OS. Important C language features are: Procedure, Speed, Modularity, Static Type, General Use, Operators, Libraries, Mid-Level, Portability, Extensibility. Procedure means step-by-step instructions. C is one way, others… Read More »

C Language Introduction

C is a programming language developed by Dennis Ritchie in 1972. It has a significant historical impact. It was originally created at Bell Laboratories of AT&T Labs for building the UNIX operating system. Key Features of C C is a versatile and general-purpose programming language. It is portable across different systems and platforms. So it suitable for various… Read More »

Code editors

Code editors are where programmers spend most of their time. There are two main types of code editors: IDEs and Lightweight editors. IDEs (Integrated Development Environments) IDEs (Integrated Development Environments) are powerful editors with many features that work on whole project. IDEs load projects, allow navigation between files, provide autocompletion based on the whole project, and integrate with… Read More »

What is string.h and why do we use?

The string.h header defines one variable type, one macro, and various functions for manipulating arrays of characters. Functions provided by string.h The string.h header file declares a set of functions to work strings. To perform operations like comparison, concatenation, and copying, this string.h library is widely used. This header file defines several functions to manipulate C strings and… Read More »

What is math.h and why do we use?

math.h is a header file in the C Standard Library, which is commonly used in C programming. It is designed for basic mathematical operations. This header file defines a set of functions and macros that provide mathematical functions capabilities for C programs. Some of the most commonly used functions in math.h are sqrt, log, sin, cos, tan, exp,… Read More »

Nested Loop in C

Prerequisite – Loops in C A nested loop is a loop inside another loop. In C programming language, you can nest a loop inside another loop to perform repetitive tasks. The inner loop executes its entire cycle each time the outer loop executes one cycle. Here is an example of a nested loop in C that prints a… Read More »

Loops in C

Loops are a fundamental control structure in programming that allow a section of code to be executed repeatedly. In the C programming language, there are three types of loops: the for loop, the while loop, and the do-while loop. 1. for loop: The for loop is used to execute a block of code a specific number of times.… Read More »