Specifications

62
Chapter 5
Data Types
CONTENTS
5.1 Constants....................................................................................................... 63
5.1.1 Types of Constants ............................................................................ 63
[ 1 ] String Constants........................................................................ 63
[ 2 ] Numeric Constants.................................................................... 63
5.2 Variables........................................................................................................ 65
5.2.1 Types of Variables according to Format............................................. 65
[ 1 ] String Variables......................................................................... 65
[ 2 ] Numeric Variables..................................................................... 66
5.2.2 Classification of Variables .................................................................. 67
5.3 User-defined Functions.................................................................................. 68
5.4 Type Conversion............................................................................................ 69
5.4.1 Type Conversion ................................................................................ 69
5.4.2 Type Conversion Examples ............................................................... 70
5.5 Scope of Variables......................................................................................... 71
5.5.1 Global Variables................................................................................. 71
5.5.2 Local Variables................................................................................... 73
5.5.3 Variables Not Declared to be Global or Local .................................... 74
5.5.4 Common Variables............................................................................. 75