Tag: c language

  • An Appetite For Learning, Hunger For knowledge and Thirst For Information.

    An Appetite For Learning, Hunger For knowledge and Thirst For Information.

    If you are a Nepalese and reading this, you are the 1% who is capable of reading and understanding English. I guarantee you that whatever you are going to read from here onward in this post is the best thing you could read today. Lately, I have been watching lots of biographical documentaries freely available…

  • My Website & Facebook Got Hacked

    My Website & Facebook Got Hacked

    Recently my website was hacked and I was not even able to log a normal login. But I have done a backup. So I could restore it easily because of the copy of the files and the database itself. Today I realize how important is keeping a backup. If I had not done a backup…

  • An untold HERO of Kathmandu

    An untold HERO of Kathmandu

    What is the real definition of HERO? Well, we all have our own definitions of being a HERO, a real world hero, unlike those we see in TVs or cinemas. But here I wanna talk in short about an old man which I can say for sure that most of the people of Kathmandu know…

  • Postfix Evaluation in C

    Postfix Evaluation in C

    A complete code block example on Postfix Evaluation in C Data Structures. The following code snippet is complete working C-code on evaluating postfix. I have commented the code for easy understanding. Size of Stack Global declarations Read the postfix expressions Push the operand Operator/pop two operands Invalid Operator Printing the given postfix operations The result…

  • Ackermann Function

    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 = 0, indent = 0; int ackermann(int x, int y) { count++; if(x<0 || y<0) return -1; if(x==0) return y+1; if(y==0)…

  • Infix Expression to Post-fix (Reverse police) Notation

    Infix Expression to Post-fix (Reverse police) Notation

    Here we just look out the code on Infix to Postfix expression notation. It is also known as Reverse police method. Find the full code snippet below. Sample Code of Reverse Police Method /* Infix expression to post-fix (Reverse police) notation RabinsXp.com */ #include<stdio.h> #include<ctype.h> #define MAX 100 typedef struct stack { int data[MAX]; int…