What is the difference between class and structure?

Structure: Initially (in C) a structure was used to bundle different type of data types together to perform a particular functionality. But C++ extended the structure to contain functions also. The major difference is that all declarations inside a structure are by default public. Class: Class is a successor of… Continue reading

What is the difference between an ARRAY and a LIST?

Array is collection of homogeneous elements. List is collection of heterogeneous elements. For Array memory allocated is static and continuous. For List memory allocated is dynamic and Random. Array: User need not have to keep in track of next memory allocation. List: User has to keep in Track of next… Continue reading

what is the difference between arrays and linked list?

Array is fixed length and Array is a simple sequence of numbers which are not concerned about each-others positions but linked list is variable length In array values are accessing easy but linked list is some time taken process because search either forward or backward In array updating operations are… Continue reading