C Program for implementation of Selection sort

In this tutorial, we will learn and write a C program to implement selection sort using function. Before that you may go through the following topics in C: Selection Sort Algorithm The selection sort is a simple sorting algorithm which is an in-place comparison-based algorithm. It has two parts where the left end has a … Read more

C Program to sort a String in Ascending order

In this tutorial, we will write a c program to sort a string array in ascending order. Before that, you may go through the following topics in C C Program to sort a String in Ascending order Output: Enter the string: programs After sorting, the string appears:agmoprrs

Keith Number Program in C

In this tutorial, we will write a Keith number in C. It is one of the most asked questions in an interview. Before that, you may go through the following topic in C programming. What is Keith Number? A positive n digit number x is called a Keith number or repfigit number (repetitive Fibonacci-like digit) if … Read more

Keith Number Program in C++

In this tutorial, we will write a Keith number in C++. It is one of the most asked questions in an interview. Before that, you may go through the following topic in C programming. C++ for loop C++ while loop C++ if..else statement What is Keith Number? A positive n digit number x is called … Read more

Singly linked list Program C++

In this tutorial, we will write a C++ program to implement singly linked list. In this program, we will create a separate function for each operation that is to be performed in a linked list. This operation includes: create() insert(): this includes insetion at the begining, at the end or at a given position. delet() … Read more

Fascinating Number Program in C

In this tutorial, we will write a C program to check whether the given number is a Fascinating number or not. You may go through the following topics first in C. What is Fascinating Number? A number is said to be a fascinating number if it is (having at least 3 digits) multiplied by 2 … Read more

Peterson Number in C

In this tutorial, we will learn about the Peterson number and check if the number is Peterson or not in C. What is Peterson Number? A number is said to be a Peterson number if the sum of factorials of each digit of the number is equal to the number itself. Peterson numbers examples: Number … Read more

Peterson Number in C++

In this tutorial, we will learn about the Peterson number and write a C++ program to check if the given number is a Peterson number or not. What is Peterson Number? A number is said to be a Peterson number if the sum of factorials of each digit of the number is equal to the … Read more