Ministry of higher and secondary public education of the republic of uzbekistan academic lyceum at the uzbek state university of world languages


Download 224.95 Kb.
bet9/9
Sana27.02.2023
Hajmi224.95 Kb.
#1234078
1   2   3   4   5   6   7   8   9
Bog'liq
ARRAYS



Applications of 1D Arrays


  1. One Dimensional Arrays are used to implement other data structures such as stacks, queues, heaps, graphs, etc.

  2. Using 1D Arrays, we can perform operations such as finding the position of any element in the array, find out the largest and the smallest element in the array, insert and delete an element, merge two arrays, etc.

  3. 1D arrays are also used to implement Sorting Algorithms such as Insertion Sort, Bubble Sort, Selection Sort, Merge Sort, etc.



CONCLUSION
Arrays are used when there is a need to use many variables of the same type. It can be defined as a sequence of objects which are of the same data type. It is used to store a collection of data, and it is more useful to think of an array as a collection of variables of the same type..Array is a type of Data structure that is used to store elements of the same data type in continuous memory locations. Arrays let us store multiple values of the same data type in a single variable. Different types of arrays make it possible to store the values in various structures.
BIBLIOGRAPHY

  1. https://en.wikipedia.org/wiki/Option_type#:~:text=In%20programming%20languages%20(especially%20functional,value%20when%20they%20are%20applied.

  2. https://www.cpp.edu/~elab/ECE114/Array.html#:~:text=Arrays%20in%20C%2B%2B,each%20with%20its%20own%20identifier).

  3. https://www.toppr.com/guides/computer-science/programming-in-c-/structured-data-type/one-dimensional-array/#:~:text=Definition,element%20stored%20in%20the%20array.

  4. https://www.simplilearn.com/tutorials/cpp-tutorial/sorting-in-cpp#:~:text=Sorting%20in%20C%2B%2B%20is%20a,minimum%20or%20maximum%20element%2C%20etc.

Download 224.95 Kb.

Do'stlaringiz bilan baham:
1   2   3   4   5   6   7   8   9




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling