Constants |
Constants as the name suggests , never change during the execution of program.They remain same throughout the program execution. |
When the user wants a value that never changes, a constant can be declared and created. |
The syntax for declaring a constant is: |
(Public|Private) Const constantname (As type) = expression |
The const statement can be declared as: |
Public const pie as single=3.14 |
Wednesday, February 25, 2009
Constants
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment