Archive | Arrays RSS feed for this section

C Program Using Arrays to Implement Working of Lift in Multi Story Buildings

February 1, 2011

0 Comments

Program Statement: Write C program that demonstrates how an array can be used to show working of lifts in a multi-story building. A 30-story building has got about 5 wings where there would be a lift in each of the wing. You have to make a lift available to the person who presses a button [...]

Continue reading...

Sorting of a Structure on Names Using Bubble Sort

September 18, 2010

1 Comment

Write C Program for Sorting of a Structure on Names Using Bubble Sort Write a program that asks user an ID, name, age and salary of 5 employees. Store all the ID’s into one array and sort the array in asscending order. Now to display the records in asscending order search for each elements from [...]

Continue reading...

How to Merge Two 1-D Arrays

September 15, 2010

0 Comments

Here’s a C program How to Merge Two 1-D arrays

Continue reading...

Program to find files with duplicate names using binary search tree

September 2, 2010

0 Comments

When the hard disk is new the files and directories are properly organized. As the hard disk grows old, some laxity sets in and one tends to create files with duplicate names in different directories. Write a program to locate these duplicate filenames. C Program to find files with duplicate names using binary search tree [...]

Continue reading...

Input-Restricted Deque Program Using Arrays

September 1, 2010

0 Comments

In an input restricted deque the insertion of elements is at one end only, but the deletion of elements can be done at both the ends of a queue. Write a program that demonstrates an input-restricted deque. Here’s an Input-Restricted Deque Program Using Array

Continue reading...