Headline

One-way transfer of control to a program location

Illustration

Consider these paragraphs in Language:Cobol:

P1.
  GO TO P2.
  DISPLAY "P1".

P2.
  DISPLAY "P2".

The program will display only "P2" and not "P1" because a goto is a one-way transfer statement, i.e., control is not transferred back to the site of the goto after completing the paragraph targeted by the goto. In Cobol, we could use a PERFORM statemen for two-way transfer:

P0.
  PERFORM P1.

P1.
  PERFORM P2.
  DISPLAY "P1".

P2.
  DISPLAY "P2".

This program would print "P2" followed by "P1".

Metadata


There are no revisions for this page.

User contributions

    This user never has never made submissions.

    User edits

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.

    10 most similar pages:

    Syntax for editing wiki

    For you are available next options:

    will make text bold.

    will make text italic.

    will make text underlined.

    will make text striked.

    will allow you to paste code headline into the page.

    will allow you to link into the page.

    will allow you to paste code with syntax highlight into the page. You will need to define used programming language.

    will allow you to paste image into the page.

    is list with bullets.

    is list with numbers.

    will allow your to insert slideshare presentation into the page. You need to copy link to presentation and insert it as parameter in this tag.

    will allow your to insert youtube video into the page. You need to copy link to youtube page with video and insert it as parameter in this tag.

    will allow your to insert code snippets from @worker.