Get Started
663

Q:

Array is used for-

  • 1
    To store the value in memory
  • 2
    To delete the value in memory
  • 3
    for output
  • 4
    all of the above
  • Show Answer
  • Workspace

Answer : 4. "all of the above"
Explanation :

An array is used to store values in memory. Arrays allow you to store multiple values of the same data type under a single variable name, making it easier to manage and manipulate data in programming. Arrays are commonly used in various programming languages for tasks such as storing collections of data, performing calculations on large sets of values, and iterating through elements to process them. Arrays are not used for deleting values in memory or for output; their primary purpose is to store and organize data.

The Most Comprehensive Exam Preparation Platform

Get the Examsbook Prep App Today