Tag: implementation

13
Feb

C program to implement evaluation of Postfix expression using Stack

Program: #include<stdio.h> #include<stdlib.h> #include<string.h> struct node { double element; struct node *next; } *head; void push(int…

03
Feb

C program to implement infix to postfix expression

Program: #include<stdio.h> #include<stdlib.h> #include<string.h> struct node { char element; struct node *next; } *head; void push(char…

25
Jan

C Program to Check Leap Year

Program Logic: If the year is divisible by 4, it is a leap year. But, if…

25
Jan

C program for list implementation using array

#include<stdio.h> #include<conio.h> #define MAX 20 //maximum no of elements in the list //user defined datatypes struct…

25
Jan

C program for list implementation using linked list

#include<stdio.h> #include<stlib.h> #include<conio.h> struct node; typedef struct node *ptr; typedef ptr list; typedef ptr position; typedef…

25
Jan

C program for Binary Search Tree

#include<stdio.h> #include<stdlib.h> #include<conio.h> struct searchtree { int element; struct searchtree *left,*right; }*root; typedef struct searchtree *node;…