answersLogoWhite

0


Best Answer

A procedure is started by calling the function that represents that procedure. The function call must include any and all required arguments.

The procedure ends whenever a return statement is encountered anywhere within the function body, or execution falls off the end of the function (assuming no return value is expected from the procedure), or a non-return function is invoked by the function (such as the abort() function) or an unhandled exception is thrown by the function. Apart from a non-returning function call, execution always returns to the calling code (the caller). If an unhandled exception is thrown by a function, the call stack automatically "unwinds" until a suitable exception handler is found. If no handler is found on the call stack, the global main function will unwind, terminating the program with an unhandled exception error. Hence the reason all non-trivial programs should provide a "catch-all" exception handler in the global main function.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What statements indicate the start and end of a procedure?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What purpose do braces serve in C programming?

grouping statements. eg: if (i==2) printf ("i=="); printf ("2"); and if (i==2) { printf ("i=="); printf ("2"); } do different things, if i<>2


Why is the code between the first and last lines of an event procedure usually indented?

The code on first line of an event procedureÊis usually indented to indicate the beginning. The code on the last line is also indented to indicate the end of an event procedure. This is for easy monitoring.Ê


When did the construction for the golden gate bridge start and end?

From 1945 to 1969, it was a very long procedure.


What is a VB procedure?

A procedure is a group of executable statements wrapped between a declaration statement and a matching End statement, the following are examples of valid VB procedures: Sub Function Event Handler Property Procedures Operation Procedures Generic Procedures E.g Private Sub ExampleProcedure() <Code> End Sub


Looping statement in c plus plus?

There are several 'looping' statements in C++. They are:while () { }do { } while () ;for (index-start, index-end; index increment/decrement) { }They are used to repetitively execute statements as long as the statement(s) controlling the loop are true.


What symbol is used to indicate the end of each JavaScript statement?

The semi-colon ( ; ) is used to indicate the end of a statement in JavaScirpt.


Do imperative statements have question marks at the end?

No, dunkass.


What is the proper brake bleeding procedure for a 2001 Pontiac Grand am?

Start at right rear, then left rear, right front, and end at left front.


Why is curly bracket used in c plus plus?

Curly braces are used to mark the start and end of a statement, typically used when the statement body consists of two or more individual statements. However they are also used to mark the start and end of a class declaration and function bodies.


Is 'to come' an infinitive phrase?

Yes. Infinitive verbs are verbs which do not indicate a number or a tense. "To come" is an infinitive form of the verb, as is "coming" because these forms do not indicate the number of people or things which are "to come", nor do these forms indicate when the "coming" happens. (All English infinitives start with "to" or end with "-ing".)


What is the purpose of a function or procedure?

function is a set of statements that can be executed in the part of the program. ex: to add two nos. using function void main() { int a,b,c; printf("enter the two numbers"); scanf("%d%d",&a,&b); add(a,b); clear(); } void add(int a,int b) { c=a+b; printf("the sum is %d",c); }


Do the flagella indicate the front end or the back end of the Euglena?

back