Computer Science, asked by Anonymous, 1 year ago

What is the use of global variable in comp ( class 10th icse board)


Anonymous: Kk
Anonymous: Matlb
Anonymous: F9 and u
Anonymous: Kk good

Answers

Answered by giri729
4
answer is above ...................
Attachments:
Answered by Anonymous
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