C Program to calculate factorial using recursion

C Program To Calculate Factorial Using Recursion

In this tutorial, we will learn to write the program to find the factorial of numbers using the C programming language. Here we are going to follow a recursive approach. What is Factorial of a number? Factorial of a whole number ‘n’ is the product of that number ‘n’ with its every whole number in … Read more

C Program to find factorial using iterative method

C Program To Calculate Factorial Using Iterative Method

In this tutorial, we will learn to write the program to find the factorial of numbers using the C programming language. Here we are going to follow an iterative approach. Please follow this article for factorial program in C using recursion Before moving forward let’s understand What is Factorial of a number? Factorial of a … Read more

Complexity of an Algorithm: Time and Space Complexity

As we know that a by Designing an Algorithm, a problem can be solved. To perform some tasks based on what the problem is asking. There could be many solutions for a single problem, and each solution results in a unique or similar algorithm. So it becomes very difficult to decide which algorithm to choose … Read more

What is an algorithm? Explaination with an example

Algorithms can be defined as the set of instructions structured to solve a problem. It is a step-by-step procedure to solve the problem. These steps are generally written in English to understand them easily and later convert them into computer programs. These steps together are called algorithms. Let us consider an example, suppose you went … Read more

Characteristics of an algorithm with explanations

As we know that, algorithms provide us the procedure to solve any problem. Below are some characteristics that define a good algorithm: Independent – Any algorithm developed should be written in such a way that it is easily understood and can be implemented on any programming language.This is called language independence and  a good algorithm … Read more

What do you mean by an algorithm? Explain it with an example.

Algorithms can be defined as the set of instructions structuredto solve a problem. It is a step-by-step procedure to solve the problem. These steps are generally written in English to understand them easily and later convert them into computer programs. These steps together are called algorithms. Let us consider an example, suppose you went shopping … Read more

Data Structure complete overview in one post

What is Data Structure? In simple term we can define data structure as, Data Structure is a way of organizing the data elements in memory so that we can efficiently retrieve it and perform any operation efficiently. Now, before moving forward on next topics lets have a eyes over the  syllabus of data structure which … Read more