Working of getch() function in C++

Working of getch() function in C++

Description The function getch() gets a character from console but does not echo(print) to the screen. getch() reads a single character directly from the keyboard, without echoing to the screen. For this functionality we can…

Program to Implement Linear Search in 1D array in C++

Program to Implement Linear Search in 1D array in C++

Description Linear Search is also known as sequential search. Here the array of integers are entered in the array ‘arr[]’. Variable ‘x’ is used to store the element to be…

Program for finding out PALINDROME of a string in c++

Program for finding out PALINDROME of a string in c++

Description In this program first and last characters of string is compared one by one moving towards centre. Here string is entered in the variable ‘st’ of type String by user. Now…

Transpose of a Matrix – ARRAY in C++

Transpose of a Matrix – ARRAY in C++

Description First, what is an ARRAY? Actually, Array is a group of elements having similar data type (either int, char, float, etc.) with continuous memory allocation. Arrays are of 2 types – 1.)    Single-Dimensional (having only…

Fibonacci Series in C++ (2 Methods)

Fibonacci Series in C++ (2 Methods)

Description  First we must know what Fibonacci series is. 0 1 1 2 3 5 8 13 21………..   By definition, the first Fibonacci number is ‘0’ and second Fibonacci number is…

Use of cout pre-defined function in C++

Use of cout pre-defined function in C++

Description cout is a predefined function.   As you know C++ is more advanced than C, therefore in C++ there is already a predefined function known as cout which is used to display…

Working of getch() function in C

Working of getch() function in C

Description The function getch() gets a character from console but does not echo(print) to the screen. getch() reads a single character directly from the keyboard, without echoing to the screen. For this functionality we can…

Program to Implement Linear Search in 1D array in C

Program to Implement Linear Search in 1D array in C

Description Linear Search is also known as sequential search. Here the array of integers are entered in the array ‘arr[]’. Variable ‘x’ is used to store the element to be…

Transpose of a Matrix – ARRAY in C

Transpose of a Matrix – ARRAY in C

Description First, what is an ARRAY? Actually, Array is a group of elements having similar data type (either int, char, float, etc.) with continuous memory allocation. Arrays are of 2 types – 1.)    Single-Dimensional (having only…

Fibonacci Series in C (2 Methods)

Fibonacci Series in C (2 Methods)

Description First we must know what Fibonacci series is. 0 1 1 2 3 5 8 13 21………..   By definition, the first Fibonacci number is ‘0’ and second Fibonacci number is…


1 2