Do spaces mater in Fortran equations?
Submitted by: AdministratorNo. Spaces are generally added for clarity. Some compilers get upset if you write things like " INTEGERI,J" rather than INTEGER I,J". Simple neatness will keep you out of these problems. Remember that a space is required in column 6 if you aren't continuing from the previous line. The following are all equivalent:
x=x*y**2*sin(x)
x=x * y**2 * sin(x)
x = x * y ** 2 * sin ( x )
Submitted by: Administrator
x=x*y**2*sin(x)
x=x * y**2 * sin(x)
x = x * y ** 2 * sin ( x )
Submitted by: Administrator
Read Online Fortran Job Interview Questions And Answers
Top Fortran Questions
☺ | How does Fortran 90 relate to FORTRAN 77? |
☺ | Why does not Fortran have intrinsic functions for something as simple as factorial? |
☺ | How do we know where various steps go in a Fortran program? |
☺ | Do spaces mater in Fortran equations? |
☺ | What is the advantage of an array over a spreadsheet format? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |