15.9k views
5 votes
_________ variables provide an easy way to share large amounts of data among all the

functions in a program.

User Blvz
by
7.9k points

1 Answer

7 votes

Final answer:

Global variables provide an easy way to share large amounts of data among all the functions in a program.

Step-by-step explanation:

Global variables provide an easy way to share large amounts of data among all the functions in a program. They are variables that are declared outside of any function and can be accessed and modified by any function within the program. For example, in a program that calculates the area of different shapes, a global variable could store the total area calculated so far and be updated by each function that calculates the area of a specific shape.

User Thiago Festa
by
8.1k points