C Programming

C Programming Tutorials

Snprintf Cpp

C/C++ snprintf() – Usage Guide

In this article, we’ll understand the working and the usage of the snprintf() C++ function. The snprintf() function is used to write formatted output to a string. Let’s understand how we can use this function,….

Using Memset In C

memset() in C

The memset() function in C is used to set blocks of memory with a particular value. In this article, we’ll have a look at how we can use this function in C programs. Syntax of….

Queue In C

Creating a Queue in C

A queue in C is basically a linear data structure to store and manipulate the data elements. It follows the order of First In First Out (FIFO). In queues, the first element entered into the….


Depth First Search (DFS) for a Graph

Depth First Search (DFS) is an algorithm that searches a graph/tree, in a depth-wise manner. There are many ways through which we can traverse through a graph. The two most common methods that we can….

Graph Theory Basics

Basics of Graph Theory

In this article, we’ll touch upon the graph theory basics. Graph Theory is a branch of mathematics that aims at studying problems related to a structure called a Graph. In this article, we will try….

C Function Pointer

Function Pointer in C

A function pointer in C is a pointer that points to a function. The C language has given a way for us to making certain statements execute faster, by allowing us to reference executable code….

Bubble Sort

Bubble Sort Algorithm

When working with large databases, it is necessary to add the functionality to search for values or find the highest or lowest values from a range of items. The Bubble Sort Algorithm is an algorithm….

Strcpy() In C Programming

strcpy() in C Programming

We earlier learned about strings in C programming in our Strings in C tutorial. Today, we will focus on strcpy() in C programming. The strcpy() function in C Programming The strcpy() function copies the contents….

Malloc And Calloc

malloc() and calloc() in C

We use malloc() and calloc() to dynamically allocate memory on the heap. For a program, static memory allocation is done on its stack, where a predefined amount of memory is reserved for a particular variable…..

Realloc() Function In C And C

realloc() in C and C++ Programming

There could be many situations while programming in C or C++ language when you need to dynamically allocate memory. Normally, the compiler during compilation allocates memory for a program. In situations where the computer does….

Generic selectors
Exact matches only
Search in title
Search in content