What are the Differences Between Fortran 77 and Fortran 90?

  • Context: Fortran 
  • Thread starter Thread starter svishal03
  • Start date Start date
  • Tags Tags
    Fortran
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 3K views
svishal03
Messages
124
Reaction score
1
Hi All,

I have an interview concerning Fortran programming. Actually one section of the interview will be on Fortran programming.

First, i am trying to get differences between Fortran 77 and Fortran 90 and have the following questions. The differences are:

1) Control Structures:

Fortran 90 has a case construct additionally and the DO, IF and CASE construct can have construct names.

The DO construct can have a WHILE control.

Question: Can anyone give an example i.e. DO construct with a while control?
2) Numeric processing

Fortran 90 contains features that allow the programmer that allow the programmer to specify the precision in a more portable manner. IT is possisble to declare real variables with at least 10 decimal digits and a range extending to 10^30.

Question: Can anyone give an example here?

3) Processing of arrays:

In Fortran 90 , it is possible to treat arrays as a single object.

Suppose A,B and C are 10 x 10 arrays of real values.

we can write

A = 2* B + C

QUESTION: Can anyone give an example where parts of an array could be referenced?

4)Handling of Data Structures- This is fine

QUESTION) Can anyone give example of input/output features in Fortran 90?

Any other differences will be useful?

Please help
 
Physics news on Phys.org
Do you still need these questions answered?