# Python Program for Merge Sort

Language Used: Python

# Merge Sort:

Merge Sort is a Divide and Conquer algorithm. It divides input array in two halves, calls itself for the two halves and then merges the two sorted halves. The merge() function is used for merging two halves.

# How it works?

First divide the list into the smallest unit, then compare…

Language Used: C

# Structures in C:

In C programming, a struct or structure is a collection of variables that can be of different data types under a single name.

## Syntax of struct:

`struct structureName {    dataType member1;    dataType member2;    ...};`

When a struct type is declared, no storage or memory is allocated. To allocate memory…

Language Used: C

# For Loop

## Syntax:

`for (Statement; testExpression; updateStatement){    // statements}`

# C if Statement:

## Syntax:

`if (test expression) {  statement(s)}`
• If the test expression is evaluated to true, statements inside the body of `if` are executed.
• If the test expression is evaluated to false, statements inside the body of `if` are not executed.

Language Used: C

# Pointers:

In C a Pointer is a variable that stores address of another variable. A pointer can also be used to refer to another pointer function.

The pointer variable might be belonging to any of the data type such as int, float, char, double, short etc.

## Syntax:

`int *p1;int…`

Language Used: C

# What is an Armstrong Number:

When the sum of the cube of the individual digits of a number is equal to that number, the number is called Armstrong number.

For Example 153 is an Armstrong number because 153 = 13+53+33.

# For Loop

## Syntax:

`for (Statement; testExpression; updateStatement){    // statements}`

# Python Program for Multiplication of Matrices

Language used: Python

# Matrix Multiplication:

So what exactly is Matrix Multiplication?

This is basically how a matrix is multiplied.

1. Order Matters: The order in which the two matrices are given as input affects or alters the output.
2. Two matrices can be multiplied only when the number of columns of the first matrix…

# Python Function:

Function is a group of related statements that perform a specific task.

Functions help break our program into smaller and modular chunks. As our program grows larger and larger, functions make it more organized and manageable.

Furthermore, it avoids repetition and makes code reusable.

## Syntax Of Function:

`def function_name(parameters):"""docstring"""statement(s)`

The program…

# Python Program For Binary Search

Language Used: Python

# Binary Search

Binary Search is basically used to find an item from a sorted list of items. It works by dividing the list into half repeatedly until it is narrowed down to just one.

It is time efficient, that is it’s run time is faster than that of the…

# C Program to check Leap Year

Here are 2 most easy ways to Check if the given year is Leap Year or not. The Source Code along with its Output and Explanation are given below: 