Category

C Tutorial

76 posts

index.ts
</>

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

April 1, 2021 Read more →
index.ts
</>

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 point

April 1, 2021 Read more →
index.ts
</>

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 Addre

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

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 &#82

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

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

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

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 infini

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

Global Variable in C

Global variables in C are declared outside any functions and usually at the top of the program as shown below. They can be used in the program inside any block of code. Properties of a Global Variable: Global variables are defined outside a function, usually on top of the program. The lifetime of a

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

Local Variable in C

A variable that is declared within the body of the function or block is called a local variable. This variable is used only within that block or function where it was created, other classes cannot access it. And is destroyed after exiting the block. Properties of a Local Variable: A local variable i

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

Kruskal’s Algorithm in C

In this article, you will learn the implementation of Kruskal’s Algorithm in C programming and starting with Kruskal’s Algorithm. Kruskal’s Algorithm It is a greedy algorithm that is directly based on MST (Minimum Spanning Tree). Kruskal’s algorithm finds a minimum spanning tree for a connected weig

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

Dining Philosophers problem in C

In this article, you will learn about the C program to solve Dining Philosophers problem. The Dining Philosophers Problem: Let there be 5 philosophers (for example) sitting around a round table for dinner. Each philosopher needs two forks to eat but there are only 5 forks (equal to the number of phi

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

Round Robin Scheduling in C

This article contains the implementation of the Round Robin Scheduling in C Programming with the explanation, an example, it’s advantages and disadvantages. If we consider large management or organization with multi-users and with a time-sharing system, in such cases response time plays a vita

March 12, 2021 Read more →