C – String Functions

Often, we need t to manipulate the String according to the need of the program. However, we can do that manually in a program but that is complex to comprehend and the program becomes very large. So to make it easy, C provides us with some library functions. And these functions are defined under string.h … Read more

C gets() and puts() functions in String

In this tutorial, you will learn about the two functions that are used in String, gets() and puts() function in C. Learn more on String. How o read and write a line of text in C gets() and puts() function are used for reading and writing a line of text or String in C. These … Read more

Strings in C

This tutorial contains about the String in C programming. You will learn about the declaration, initialization of String, and the use of string with examples. What is String? A string is defined as a series of characters or an array of characters(terminated by a null character ‘\0’). Each character present in the array occupies one … Read more

C – Pointer to Pointer (with Example)

As we know by now that a pointer stores the address of the pointed variable. But it is not the only use, pointer also stores the address of another pointer forming a chain like structure. When we defined the pointer to a pointer, it means the first pointer contains the address of the second pointer … Read more

C – Types of Pointers

In this tutorial we will learn about Null Pointer, Void Pointer, Wild Pointer and more. If you want to know more on Pointers, click the link given below. Pointers in C There are eight different types of pointers, some of which we will learn here: Null pointer Void pointer Wild pointer Dangling pointer Complex pointer … Read more

C – Passing Pointers to Functions

In C programming, just like we pass values of the variable as parameters in the function, we can also pass addresses as an argument in functions. When we pass pointers in the function that means we pass the address of the variable instead of the value. Syntax: Let us see some examples. 1. Pass Addresses … Read more

C – Pointer Arithmetic

In this tutorial, we will learn about the various operation that can be performed on Pointers. But before that if you do not know about the Pointer click the link below. Pointers in C Operators in C As the operation can be performed on numeric value and pointer is an address which is an numeric … Read more

C – Pointers

In programming, there are various tasks that can be achieved easily with the use of pointers such as dynamic memory allocation that needs pointers to perform. It is important to learn pointers for the programmer because it minimizes the execution time and saves memory space. Before we jump into the Pointers let us understand a … Read more

C – Recursion

Recursion refers to the process when a function calls itself inside that function directly or indirectly or in a cycle. And such functions are called recursive functions. However, the crucial part is the termination condition that is given to the recursive function because it might go into an infinite loop. If the termination is not … Read more

Introduction to Sparse Matrix in Data Structure

In this article, we will learn about Sparse matrix, its use and its different representation. What is a sparse matrix? A matrix can be defined with a 2-dimensional array with column m and row n represented as m * n matrix. However, there may be a matrix or matrices that may contain less Non-Zero values … Read more