Difference between revisions of "Global variables"

From Free Pascal wiki
Jump to navigationJump to search
m
Line 1: Line 1:
 
a global variable is defined in [[standard pascal]] into [[main program]]
 
a global variable is defined in [[standard pascal]] into [[main program]]
main_program
+
  main_program;
  '''var i:integer''';
+
  var
 +
    i:integer;
 
   begin
 
   begin
 
   end.
 
   end.
 +
 +
'''i''' is a global variable.

Revision as of 13:55, 26 July 2006

a global variable is defined in standard pascal into main program

 main_program;
 var
   i:integer;
 begin
 end.

i is a global variable.