Ra210503 Advanced Data Structure Set1
Ra210503 Advanced Data Structure Set1
1. (a) What are the differences between a C++ struct and C++ class?
(b) What does extern “C” int func(int ∗, Foo) accomplish?
(c) How do you access the static member of a class?
(d) What are the access privileges in C++? What is the default access level?
[4+4+4+4]
4. Define the Abstract data type for Stack. Write a C ++ program to implement
stack ADT using linked list. [16]
5. Develop a class for hash table using linear probing and neverUsed concept to handle
an erase operation. Write complete C++ code for all the methods. Include a
method to reorganize the table when (say) 60% of the empty buckets have never
used equal to false. The reorganization should move pairs around as necessary and
leave a properly configured hash table in which neverUsed is true for every empty
bucket. [16]
?????
1 of 1