What is the use of global variable in comp ( class 10th icse board)
Anonymous:
Kk
Answers
Answered by
4
answer is above ...................
Attachments:
Answered by
10
The global variable makes the variable visible throughout the program .
The global variable is used to initialise the variable outside the method.
Hence the variable is made public and can be used from within the class.
The function of a global variable is that " it makes the access specifier of the variable public ".
Similar questions