11-25-2023, 10:16 PM
The "B" in the main program is of course zero. . . because the variable was not initialized. - Every variable in QuickBasic is basically zero until it is initialized with a value.
So the global A + B are zero. The B in the procedure, on the other hand, was initialized and in this case correctly results in 1.
So the global A + B are zero. The B in the procedure, on the other hand, was initialized and in this case correctly results in 1.