Describe the Use of Control Statements
An ifstatement decides whether to execute another statement or decides which of two statements to execute. This statement is used for stopping the execution of the program the break statement is used where. Control Statements In C Types Of Control Statements In C Language Example Consider this Java fragment containing a forstatement nested inside another. . Control statements enable us to specify the flow of program control. Such statements are called control flow statements. Three situations in which a combined counting and logical control loops are. When execution leaves a scope all automatic objects that were created in that scope are destroyed. A list of values is to be added to a SUM but the loop is to be exited if SUM exceeds some prescribed value. The compiler interprets these hierarchically treating a composite control statement as a single statement for the purpose of determining what is affected by the next highe...