What are the Differences Between Fortran 77 and Fortran 90?

  • Context: Fortran 
  • Thread starter Thread starter svishal03
  • Start date Start date
  • Tags Tags
    Fortran
Click For Summary
SUMMARY

The discussion focuses on the key differences between Fortran 77 and Fortran 90, highlighting four main areas: control structures, numeric processing, array handling, and data structures. Fortran 90 introduces enhanced control structures, including the CASE construct and WHILE control in DO loops. It also allows for more precise numeric declarations, enabling real variables with at least 10 decimal digits and a range up to 10^30. Additionally, Fortran 90 treats arrays as single objects, facilitating operations like A = 2 * B + C. Lastly, it improves input/output features compared to Fortran 77.

PREREQUISITES
  • Understanding of Fortran programming language
  • Familiarity with control structures in programming
  • Knowledge of numeric precision and data types
  • Experience with array manipulation in programming
NEXT STEPS
  • Research Fortran 90 control structures, specifically the CASE and WHILE constructs
  • Explore numeric precision in Fortran 90 and how to declare real variables
  • Study array operations in Fortran 90, including array slicing and referencing
  • Investigate input/output features in Fortran 90 compared to Fortran 77
USEFUL FOR

Programmers preparing for interviews focused on Fortran, software developers transitioning from Fortran 77 to Fortran 90, and educators teaching Fortran programming concepts.

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
 
Technology news 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
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 21 ·
Replies
21
Views
3K
Replies
7
Views
3K