Category Archives: Data Structure

Types of Data Structure

In programming languages, we use data structures to provide a proper structure to our data. A data structure is basically used to collect and organize the data on which we are going to perform the operations. For example, we all know what is an Array, one of the famous data structures, Arrays are used to… Read More »

Float vs Double

In programming languages like C, C++, and Java we have two data types to represent floating points number. In simple words, floating points are those numbers which contain decimal points such as 5.000, 6.2123, etc. Both the real number and decimal number considered under floating points numbers.

Stack vs Heap

When we compile our program, it requires memory to execute, in high-level languages Operating system and the translator take care of the memory management. The memory that would be assigned to our program depends on the operating system and its memory management architecture.

Array vs List

Array and List are two data structure used to store multiple values. The main difference between both is that the Array is a collection of Homogeneous data elements whereas the List is a Heterogeneous collection of data elements. The list can be homogeneous or non-homogeneous, it can contain different data type elements at once. The… Read More »