I am confused for 5 to 7.30

I did not get what mam wanted to say in 5 to 7.30 timestamp. where does 10 come from/

in the code ,we gave one the value 10 in line 38.so we just took that value and passed into the function

1 Like

but how is it able to read the value of the class it is not in . we initialised int one=10; in main and how is it able to read in DEMOGLOBALSCOPES. Can demolobal scopes read all the variables. is it not like this that a class can read it’s and global’s?

please correct me if I am wrong. it happened as
int ans=DEMOGLOBALSCOPES(one);
captured value of one and transferred it to it’s class and then in it’s class more functions were performed and then it returned the final output to main class.

yes . .
this is correct

1 Like