Skip to content

Instantly share code, notes, and snippets.

View adithyabhat99's full-sized avatar

AdithyaBhat adithyabhat99

View GitHub Profile
@priyadarshitathagat
priyadarshitathagat / pre_post_to_infix.c
Last active March 21, 2023 17:29
Postfix to Infix and Prefix to Infix conversion in c using stacks
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
# define MAX 20
char str[MAX],stack[MAX];
int top=-1;
void push(char c)
{
stack[++top]=c;
@priyadarshitathagat
priyadarshitathagat / postfix_to_prefix.c
Created September 15, 2016 21:08
Postfix to Prefix conversion in c using stacks
#include<stdio.h>
#include<conio.h>
#include<string.h>
#include<stdlib.h>
# define MAX 20
char str[MAX],stack[MAX];
int top=-1;
void push(char c)
{
stack[++top]=c;