24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

3.4.10 Hexadecimal Constants (Extension) .................................................................. 156<br />

3.4.11 Octal Constants (Extension) .............................................................................. 156<br />

3.5 Symbolic Constants ............................................................................................................ 157<br />

4 Arrays ............................................................................................................................................... 159<br />

4.1 Introduction ........................................................................................................................ 159<br />

4.2 Properties of Arrays ........................................................................................................... 159<br />

4.3 Array Elements .................................................................................................................. 160<br />

4.4 Classifying Array Declarators by Dimension Declarator .................................................. 162<br />

4.4.1 Constant Array Declarator ................................................................................... 162<br />

4.4.2 Adjustable Array Declarator ................................................................................ 162<br />

4.4.3 Assumed-size Array Declarator ........................................................................... 162<br />

4.4.4 Allocatable Array Declarator ............................................................................... 163<br />

4.5 Classifying Array Declarators by Array Name .................................................................. 164<br />

4.5.1 Actual Array Declarator ...................................................................................... 164<br />

4.5.2 Dummy Array Declarator .................................................................................... 164<br />

4.6 Use of Array Names ........................................................................................................... 164<br />

5 Character Substrings ......................................................................................................................... 165<br />

5.1 Introduction ........................................................................................................................ 165<br />

5.2 Substring Names ................................................................................................................ 165<br />

5.3 Extensions .......................................................................................................................... 166<br />

6 Structures, Unions and Records ....................................................................................................... 167<br />

6.1 Structures and Records ....................................................................................................... 167<br />

6.2 Arrays of Records .............................................................................................................. 168<br />

6.3 Unions ................................................................................................................................ 169<br />

7 Expressions ....................................................................................................................................... 173<br />

7.1 Arithmetic Expressions ...................................................................................................... 173<br />

7.1.1 Arithmetic Operators ........................................................................................... 173<br />

7.1.2 Rules for Forming Standard Arithmetic Expressions .......................................... 174<br />

7.1.3 Arithmetic Constant Expression .......................................................................... 176<br />

7.1.4 Data Type of Arithmetic Expressions .................................................................. 1<strong>77</strong><br />

7.2 Character Expressions ........................................................................................................ 178<br />

7.2.1 Character Operators ............................................................................................. 178<br />

7.2.2 Rules for Forming Character Expressions ........................................................... 178<br />

7.2.3 Character Constant Expressions .......................................................................... 179<br />

7.3 Relational Expressions ....................................................................................................... 179<br />

7.3.1 Relational Operators ............................................................................................ 179<br />

7.3.2 Form of a Relational Expression ......................................................................... 179<br />

7.3.2.1 Arithmetic Relational Expressions ........................................................ 180<br />

7.3.2.2 Character Relational Expressions .......................................................... 180<br />

7.4 Logical Expressions ........................................................................................................... 180<br />

7.4.1 Logical Operators ................................................................................................ 181<br />

7.4.2 Rules for Forming Logical Expressions .............................................................. 183<br />

7.4.3 Logical Constant Expressions .............................................................................. 184<br />

7.5 Evaluating Expressions ...................................................................................................... 184<br />

7.6 Constant Expressions ......................................................................................................... 185<br />

8 Assignment Statements ..................................................................................................................... 187<br />

8.1 Introduction ........................................................................................................................ 187<br />

viii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!