Archive | Cool C Programs RSS feed for this section

Cool C Programs: Sorting Dates in DD MM YYYY Format

September 14, 2011

0 Comments

advanced c/c++ programs

Here’s one of the cool C Programs that you won’t find on most websites… It’s a C Program to take any five dates in dd\mm\yyy format, and arrange them in ascending order. Steps to Develop the Program 1. Dates are entered as strings. 2. Convert the dates into integer values. 3. Check for validation of [...]

Continue reading...

Simulation of an Airport

August 14, 2010

0 Comments

There is a small busy airport with only one runway. In each unit of time one plane can land or one plane can take off, but not both. Planes arrive ready to land or to take off at random times, so at any given unit of time, the runway may be idle or a plane [...]

Continue reading...

Tower Of Hanoi

August 13, 2010

1 Comment

Tower of hanoi is a historical problem, which can be easily expressed using recursion. There are N disks of decreasing size stacked on one needle, and two other empty needles. Tower of hanoi is required to stack all the disks onto a second needle in the decreasing order of size. The third needle can be [...]

Continue reading...

Function Calls and Stack

August 12, 2010

0 Comments

A stack is used by programming languages for implementing function calls. C program to check how function calls are made using stack.

Continue reading...

FAT: Exploring The Disk

August 10, 2010

0 Comments

By far the most widely used storage mediums are the floppy disks and the fixed disks (hard disks). Floppy disks and hard disks come in various sizes and capacities but they all work basically in the same way – information is magnetically encoded on their surface in patterns. These patterns are determined by the disk [...]

Continue reading...