Tagged: c language

Postfix Evaluation in C Language 0

Postfix Evaluation in C

  /* Evaluating postfix */ #include <stdio.h> #include <math.h> #define SIZE 50 /* Size of Stack */ #include <ctype.h> int s[SIZE]; int top=-1; /* Global declarations */ push(int elem) { s[++top]=elem; } int pop()...

0

Ackermann Function

Ackermann Function is the simplest example of a well defined total function which is compatible but not primitive recursive. It grows faster than an exponential function. /* Ackermann Function */ #include<stdio.h> #include<stdlib.h> int count...