Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Control structure in programming languages

 
webmaster forum
vijay12  Offline
Activity
0%
 
Regular Coder
Posts: 67
Topics: 33
January 03, 2009, 11:11:05 AM

hi  friends !!!  what  are the  types of  control  structures that are used  in other languages ?? what methods  do these  languages  use to control flow ( such as in a loop or switch ) ??
« Last Edit: January 03, 2009, 12:24:40 PM by Admin »
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
January 03, 2009, 02:47:24 PM

If you are looking for other languages, then post in the appropriate forum. To control flow there are conditionals, while loops, for loops, switch, function calls, try and catch (I suppose)

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
webmaster forum
cashcars  Offline
Activity
100%
 
Regular Coder
Posts: 53
Topics: 1
WWW
January 15, 2012, 11:35:24 AM

control flow statement is a statement whose execution results in a choice being made as to which of two or more paths should be followed.  For non-strict functional languages, functions and language constructs exist to achieve the same result, but they are not necessarily called control flow statements.

The kinds of control flow statements supported by different languages vary, but can be categorized by their effect:

    continuation at a different statement (unconditional branch or jump),
    executing a set of statements only if some condition is met (choice - i. e. , conditional branch),
    executing a set of statements zero or more times, until some condition is met (i. e. , loop - the same as conditional branch),
    executing a set of distant statements, after which the flow of control usually returns (subroutines, coroutines, and continuations),
    stopping the program, preventing any further execution (unconditional halt).

cash for old cars
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page November 24, 2011, 11:03:07 AM