Binary Search in C

Binary search in C programming is to find an element’s position in a sorted Array. The following program for binary search finds the location of a searched element from the array. Binary search is applied to sorted elements. So if …

Read moreBinary Search in C

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 …

Read moreGlobal Variable in C

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 …

Read moreLocal Variable in C

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 …

Read moreKruskal’s Algorithm in C