Currently browsing tag

codes

Understanding Push and Pop operations in Stack

A Stack is defined as a special type of data structure where items are inserted from one end called top of stack and items are deleted from the same end. Here, the last item inserted will be on the top of the stack. Since, deletion is done from the same …

Implementation of Stack to perform Push, Pop and Display operations on C language

 Definition of Stack A Stack is defined as a special type of data structure where items are inserted from one end called top of stack and items are deleted from the same end. Here, the last item inserted will be on the top of the stack. Since, deletion is done …

Calculate factorial of integer - Flowchart

Calculate Factorial of the integer – C program – Code

Logic for finding Factorial Let n=5 be the number then, Factorial = 5 x 4 x 3 x 2 x 1 = 120 So, let’s do same logic in coding Flowchart   Code /*find factorial of integer*/ #include<conio.h> #include<stdio.h> void main() { int n, i, f; printf(“Enter any number: ”); …

Binary Search of an sorted array using C Program Code & Algorithm

Definition: Binary Search is used for searching in a sorted array in C programming. This search method tests the middle element of …

C Program – Code – Area and Volume of Square, Rectangle, Circle and Triangle

Description: This program in C finds out the Area and Volume of Square, Rectangle, Circle and Triangle.