Begin Programming Logo
Home | KPL | Object Pascal | General Programming | Code Database | About Us
   
Assignment Statements
   
   

In all programs it is necessary to assign values to variables in order to save the data or to carry out a function. To do this an assignment statement is used. It is one of the most basic statements in programming. It can be as simple as when a single value is stored in a variable or the statement could assign the result of a function or series of functions to the variable.


Examples:

X = 5
X := TRUNC (15 / 7)
Y = 'Hello World'

   

Valid XHTML 1.0 Transitional Valid CSS!