Fortran What are the Differences Between Fortran 77 and Fortran 90?

  • Thread starter Thread starter svishal03
  • Start date Start date
  • Tags Tags
    Fortran
AI Thread Summary
Fortran 90 introduces several enhancements over Fortran 77, including new control structures like the CASE construct and the ability to use WHILE in DO loops. It allows for more precise numeric processing, enabling the declaration of real variables with at least 10 decimal digits and a range up to 10^30. Array processing is improved, allowing arrays to be treated as single entities, exemplified by operations like A = 2 * B + C. Additionally, Fortran 90 offers advanced data structure handling and improved input/output features. Overall, these differences significantly enhance programming capabilities in Fortran 90 compared to Fortran 77.
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?
 
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...

Similar threads

Replies
3
Views
2K
Replies
22
Views
4K
Replies
9
Views
2K
Replies
3
Views
4K
Replies
7
Views
3K
Replies
8
Views
4K
Replies
5
Views
3K
Replies
21
Views
3K
Back
Top