answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why is curly bracket used in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What property is 9 plus l-bracket 9 plus 0 r-bracket equals l-bracket 9 plus 9 r-bracket plus 0?

This is the associative law for addition: If a, b, c are any numbers then: a + (b + c) = (a + b) + c


What is the algebric answer to this 7C minus open bracket C plus 2 close bracket?

7C MINUS bracket open c plus 2 bracket close equals 7c minus c minus 2 equals 6c minus 2


How do you end a program in c?

All C programs have a main() function, and when the end of that is reached, the program terminates, so to end a program, just type the ending curly bracket '}' to match the opening one of the main() function. It is considered good practice to end a program with the statement 'return 0;' before the last curly bracket, to indicate that the program terminated normally.


What is the mean c plus plus in machine code?

It is used to distinguish between the C or C++


Why functions are not used in c plus plus?

Of course they are used. Both stand-alone and class-member functions are used in C++.


What is c plus plus primarily used for?

Programming.


Is c plus plus can be used in game programming?

yes! why not! this c program is used in ATM servicesand also in games.


What is diffence between c and c plus plus?

main difference b/w c and c++ is that c is procedural language whereas c++ is object oriented language also classes are not used in c but in c++ classes are used.


Which compiler is used for writing c plus plus exception handling programs?

C++ compiler, obviously, a C compiler won't do.


How C plus plus is better than C?

C++ is a language code for computer and lapatops which is used in programming but C is a grade so they are different.


Which statement is not frequently used in C plus plus?

The goto statement.


Which operator is used for deallocating memory in c plus plus?

delete