You are on page 1of 1

Data struct

Assignment 1 1.Explain a. function overloading and operator overloading. (4 marks) b. virtual constructors and destructors. (4 marks) c. namespace in C++. (4 marks) 2.Differentiate between a. an object and a class. (4 marks) b. a deep copy and a shallow copy. (4 marks) 3.Write a function that can reverse a linked-list. (10 marks) 4.Find the output of the following program. Explain your answer. void main() { int a, *pa, &ra; pa = &a; ra = a; cout <<"a="; } (5 marks) 5. Describe by example to delete the first node of linked list. (Explanation must use an appropriate coding and figure)

(15 marks)

You might also like