Skip to main content
Taylor & Francis Group Logo
Advanced Search

Click here to search books using title name,author name and keywords.

  • Login
  • Hi, User  
    • Your Account
    • Logout
Advanced Search

Click here to search books using title name,author name and keywords.

Breadcrumbs Section. Click here to navigate to respective pages.

Chapter

Subprograms

Chapter

Subprograms

DOI link for Subprograms

Subprograms book

Subprograms

DOI link for Subprograms

Subprograms book

BySubrata Ray
BookFortran 2018 with Parallel Programming

Click here to navigate to parent product.

Edition 1st Edition
First Published 2019
Imprint Chapman and Hall/CRC
Pages 77
eBook ISBN 9780429326097

ABSTRACT

A subprogram is just like a main program, which can be compiled independent of the main program. It can be debugged and tested by some driver programs. Different users can share a subprogram, which can be ported from one program to another. A function subprogram starts with keyword function followed by the name of the function and the arguments of the function within parentheses. If there is more than one argument, the arguments are separated by a comma. A subroutine subprogram may return any number of values including zero to the calling program. The subroutine subprogram starts with keyword subroutine followed by the name of the subroutine and its arguments separated by a comma within parentheses. The subprograms discussed so far are external procedures. An internal procedure is a subprogram that is contained within a main program or another subprogram. The internal procedures are accessible from the unit that contains the internal procedure.

T&F logoTaylor & Francis Group logo
  • Policies
    • Privacy Policy
    • Terms & Conditions
    • Cookie Policy
    • Privacy Policy
    • Terms & Conditions
    • Cookie Policy
  • Journals
    • Taylor & Francis Online
    • CogentOA
    • Taylor & Francis Online
    • CogentOA
  • Corporate
    • Taylor & Francis Group
    • Taylor & Francis Group
    • Taylor & Francis Group
    • Taylor & Francis Group
  • Help & Contact
    • Students/Researchers
    • Librarians/Institutions
    • Students/Researchers
    • Librarians/Institutions
  • Connect with us

Connect with us

Registered in England & Wales No. 3099067
5 Howick Place | London | SW1P 1WG © 2021 Informa UK Limited