0% found this document useful (0 votes)
26 views1 page

Data Structure Through C - Theory Assignment

The document outlines two assignments focused on data structures and algorithms. It includes questions on definitions, types, operations, and examples related to data structures such as arrays, pointers, and structures, as well as algorithms for stack and queue operations. Additionally, it requests programming tasks in C for manipulating data structures and converting expressions between notations.

Uploaded by

Master D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

Data Structure Through C - Theory Assignment

The document outlines two assignments focused on data structures and algorithms. It includes questions on definitions, types, operations, and examples related to data structures such as arrays, pointers, and structures, as well as algorithms for stack and queue operations. Additionally, it requests programming tasks in C for manipulating data structures and converting expressions between notations.

Uploaded by

Master D
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Assignment-1

1. What do you mean by data structures? Explain its types.

2. Define the major operations of data structure.


3. What do you mean by Pointer? Explain with the help of an example.
4. Briefly explain Dynamic Memory Allocation with all types and its program.
5. What do you mean by Array? Explain with the help of an example.
6. What do you mean by Structure? Explain with the help of an example.
7. What do you mean by Abstract data type? Explain
8. Write a program to calculate the sum of all elements in an integer array.
9. Define a structure to represent a student with fields for name, roll number, and marks
in three subjects. Write a program to input and display the information for multiple
students.
Assignment-2
1. What do you mean by Algorithm? Explain.
2. What do you mean by Stack? Explain.
3. Write an algorithm for push ( ) and pop ( ) elements in stack?
4. What do you mean by Queue? Explain its types.
5. Write an algorithm for insert and delete elements in queue?

6. Convert a+(b*c(d/e^f)*g)*h) into postfix notation using Stack.


7. Convert (a+(b/c)*(d^e)-f) into prefix notation using stack.
8. Write a program in C to insert, delete and print the elements in stack?
9. Write a program in C to insert, delete and print the elements in queue?

You might also like