Explain The Diff. B/W Structure Unions and Arrays?: Unit 1 Important Questions
Explain The Diff. B/W Structure Unions and Arrays?: Unit 1 Important Questions
8. How the structures are implemented with functions, arrays and pointers?
10. Define string and write a c program to check whether given no. is palindrome
or not?
11. What are the string handling functions in c and explain each with ex.?
1. Write a C program to implement singly linked list for the following operations
A) Create b) insert(all operations) c)delete(all operations)
d)search e) display
2. what are the diff. b/w nonlinear and linear data structures?(static and non-
static)
2. Which technique of searching an element in an array would you prefer to use and
in which situation? Explain the algorithm of Binary Search to search for an
element 100 by considering the following elements 8, 22, 37, 49, 81, 99, 105,
113
algorithms?
UNIT 4
1. Write a C program to implement stack using arrays for the following operations
a) Push() b) pop() c)peek() d) display()
2. Write a C program to implement queue using arrays for the following operations
b) enqueue() b)dequeue() c) display()
3. Write a program to convert an infix expression to a post fix expression. Illustrate
the conversion with the following infix expression as input
A+ B/C* D-E / F*G+ H/ I
4. Write an algorithm to evaluate an expression given in postfix notation. Show the
execution of your algorithm for the following expression.
AB^CD-EF/GH+/+*
5. A letter means enqueue and an asterisk means dequeue in the following
sequence. Give the sequence of values returned by the print operation when this
sequence if operations are performed on an initially empty FIFO queue .
DAT*A*STR***UC***TU*R**E
6. Draw the stack structure in each case when the following operations are
performed on an empty stack.
UNIT 5
1. Write a C program to copy one file to another.
2. Write a C program to merge two files using command line arguments.
3. Write a C program to implement the following file input output operations
a. fprintf(), fscanf()
b. fgetc(), fputc()
c. getw(), putw()
d. fread() and fwrite()
4. Explain file status functions with examples.(feof,ferror)
5. Explain file positioning functions illustrate with a C program.(fseek)
11. How to read and write binary file and text file?