Latest Blog

postfix-expression

Program to convert an infix expression to postfix expression
January 25, 2014 | 1 Comment

This program shows how to convert an infix expression to postfix expression. Before proceeding to program, first understand what is difference between infix expression and postfix expression. Infix notation: X + Y. Operators are written in-between their operands. Postfix notation (also known as “Reverse Polish notation”) : X Y + . Operators are written after […]

Read More

Program to print first 10 automorphic number
January 25, 2014 | No Comments

The following program prints first 10 automorphic number.  I am giving you all brief introduction about what actually automorphic numbers are, assuming that some of you might not be aware about that.  In mathematics an automorphic number (sometimes referred to as a circular number) is a number whose square “ends” in the same digits as number itself. For example, 52 = 25, 62 = 36, 762 = […]

Read More

Program to Calculate Permutation and Combination
January 17, 2014 | No Comments

/* Calculate Permutation and Combination (nCr and nPr) Using Function */ #include<stdio.h> #include<conio.h> void main()

Read More

Program to display fibonacci series using recursion
January 11, 2014 | No Comments

/* Fibonacci series using recursion */ #include<stdio.h> #include<conio.h> void main() {

Read More

Program to display a pyramid of numbers
January 11, 2014 | 2 Comments

/* Program to draw pyramid of numbers displaying  following Pattern  */ /*  1 2 3 4 5 6 7 8 9 10   */

Read More

Program to display Floyd’s Triangle
January 10, 2014 | No Comments

/* Q. program to produce the following form of Floyd’s Triangle.       0       10       010       1010 */ #include<stdio.h> #include<conio.h> void main()

Read More

Program to display array in reverse order
January 10, 2014 | No Comments

/* This program read n value into array calculate reverse array and display all data in reverse order  */ #include<stdio.h> #include<conio.h> void main() {

Read More

Program to Create and Sort a Heap
January 9, 2014 | No Comments

/* HPSORT.C : PROGRAM TO CREATE A HEAP AND TO SORT A HEAP, HEAP IS STORED IN AN ARRAY */ #include<stdio.h> #include<conio.h> void crheap(int [], int); void processheap(int [],int);

Read More

Program to Create and Read a File
January 9, 2014 | No Comments

/* This program read a file entered by the user and displays its contents on the screen, fopen function is used to open a file it returns a pointer to structure FILE. FILE is a predefined structure in stdio.h . If the file is successfully opened then fopen returns a pointer to file and if it […]

Read More

Program to Check number is Armstrong
January 8, 2014 | No Comments

/* A number is armstrong if the sum of cubes of individual digits of a number is equal to the number itself. For example 371 is an armstrong number as 33 + 73 + 13 = 371. Some other armstrong numbers are: 0, 1, 153, 370, 407 */

Read More