answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What are the arguments for and against that java uses a right brace to mark the end of all compound statements?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is a statement in C plus plus?

A statement may be simple or compound. The following examples are all simple statements: int i=1; i++; std::cout<<i<<std::endl; Note that a simple statement ends with a semi-colon. A compound statement is a group of simple statements enclosed in braces. Compound statements usually begin with an opening statement, such as for, if, switch, etc. for(int i=0; i<10; ++i) { int j=i*i; std::cout<<j<<std::endl; } In this example, the compound statement begins with the for keyword and ends at the closing brace. Everything between the braces is treated as a single statement composed from simple statements. If there were only one simple statement, the braces would be optional, but the statement would still be regarded as a compound statement. The comma operator can also be used to form compound statements (braces are neither required nor implied): int i=1, j=2; The compiler treats this as if it were written in full: int i=1; int j=2;


What must an opening brace in a C plus plus program be?

An opening brace must be terminated with a closing brace in C++. Braces are used to enclose code blocks and initialiser lists.


Where function execution ends in c language?

In C, function execution ends with the return statement or when execution encounters the last brace, }, that matches the opening brace, {. If the function is typed, such as int myfunc(), then encountering the last brace is considered an error, because that sequence returns no value.


Is a left brace in a c program always followed by a right brace later in the program?

Yes. Braces are used to group similar pieces of code in a C program


What is a pneumatic brace?

a splint that uses air to keep the limb in place