What are the Differences Between Fortran 77 and Fortran 90?

  • Context: Fortran 
  • Thread starter Thread starter svishal03
  • Start date Start date
  • Tags Tags
    Fortran
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
 
on Phys.org
Do you still need these questions answered?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 17 ·
Replies
17
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 21 ·
Replies
21
Views
3K
Replies
7
Views
3K