I B.Tech - Regular Examinations, June 2009
First Year
C PROGRAMMING AND DATA STRUCTURES - SET NO: 4
(Regulation 2007)
Time : 3 hours |
Maximam Marks:80 |
Answer any FIVE Questions
1. How algorithm is different from flowchart? Write an algorithm and draw flowchart for finding greatest among three given numbers.
2.What is a function ? What are the different types of functions? Explain function
with no argument and no return type with an example.
3.Write short notes on pointers.
4.(a) How structure is implemented using arrays? Give an example.
(b) Compare structure and union.
5.(a) Write the syntax for opening a file with various modes and closing a file .
(b) Explain about file handling functions .
6. Write an algorithm for routine merge(x,lb1,ub1,ub2) that assumes that x[lb1] through
x[ub1] and x[ub1 + 1] through x[ub2] are sorted and merges the two into x[lb1]
through x[ub2].
7.Write a program to delete a node in singly and doubly linked list .
8. Explain binary search tree operations indetail.
|