Category

C Tutorial

76 posts

index.ts
</>

Bit Stuffing Program in C

This post contains the implementation of Bit Stuffing in C programming. Learn about bit-stuffing and with source code for Bit Stuffing in c. What is Bit Stuffing? Bit Stuffing is the technique of insertion of one or more extra bits (0) into data. These are the non–information bits as a way to

March 12, 2021 Read more →
index.ts
</>

C – Storage Class

Every variable has a storage class that defines the characteristics of the variable. It tells the compiler where to allocate memory for a variable, it also determines the scope of the variable, visibility, and lifetime of a variable. There are four types of storage classes: Automatic External Static

March 12, 2021 Read more →
index.ts
</>

C – Dynamic Memory Allocation

In this tutorial, you will learn how to dynamically allocate memory in C program using 4 standard library functions: malloc(), calloc(), free() and realloc() with examples. You will also learn the difference between malloc and calloc at the end. Dynamic Memory Allocation The main concept of dynamic

March 12, 2021 Read more →
index.ts
</>

C – Preprocessors

As the “pre” means beforehand, similarly it means processing something before passing it on further. The preprocessor is a program that processes the source program before it is passed to the compiler. So we can say that it is a separate process in the compilation. Preprocessor commands

March 12, 2021 Read more →
index.ts
</>

C – File System (I/O)

In this tutorial, you will learn about file handling in C. You will learn how to read from a file, write to a file. close a file and more. File pointers: It is not enough to just display the data on the screen. We need to save it because memory is volatile and its contents … Read more

March 12, 2021 Read more →
index.ts
</>

Array in C

An array is a group or the collection of data having the same data-type stored in a contiguous memory location. It is a simple data structure format where the primitive type of data such as int, char, double, float, etc are stored and accessed randomly through their index number. It can also store t

March 12, 2021 Read more →
index.ts
</>

C – Passing Array to Function

Passing an array to function in the one-Dimensional array is done through an actual parameter and array variables with subscript are passed as formal arguments. While passing array only the name of the array is passed to the function. Same method is applied for the multi-dimensional array. There are

March 12, 2021 Read more →
index.ts
</>

Pointer to an Array in C

The basic idea of Pointer to an Array is that a pointer is used in with array that points to the address of the first element of that array. Before we begin, you need to have the knowledge of following C programming: Array in C Pointers in C Consider the following: In the above example, … Read

March 12, 2021 Read more →
index.ts
</>

C – Multi-Dimensional Array in C

What is Multi-Dimensional Array in C? In C programming, Multi-Dimensional Arrays refer to as array of arrays. This could be of 2D or 3D (two-dimensional or three-dimensional) Array. These arrays are stored in the form of a table (with rows and columns). The general form of multi-dimensional array: T

March 12, 2021 Read more →
index.ts
</>

C – Two Dimensional Array

What is Two Dimensional Array in C? Array with two subscripts is known as two dimensional Array. The 2D array is organized as the collection of rows and columns to form a matrix. 2D arrays are created to manipulate data structures. Example: int arr[][]; Declaration of 2D array. The following shows t

March 12, 2021 Read more →
index.ts
</>

C – One Dimensional Array

What is One Dimensional Array in C? An array with only one subscript is known as a one-dimensional array.Example: int arr[10]. Syntax: Declaration of 1D Array in C: For declaration, the programmer needs to specify the type of element and number of elements in an array. Certain rules for declari

March 12, 2021 Read more →