0
The } & {
what are these brackets used for?
5 Respuestas
+ 1
hi,
these are the parenthesis symbols or
this is used where a function starts after declaration
such as, for example
void main() { // beginning of a function or a class
} // ending of a function or class
without these a function cannot be used within a programming language.
! HAPPY CODDING !
+ 4
These brackets indicate the beginning and termination of program Ariel
+ 2
{ and } define the start and end of a block of code .
in c like languages (c,c++,c#,java.....) we have expressions (an expression is a line of code that ends with a semicolon ; ) .
a number of expressions that are enclosed within { } are called a block .
the defines a scope for variables which means that the variables declared within a block are only available within that block while variables declared out of the block can be used inside of it.
also the block defines the beginning and end of a method or a class in the same way
0
thank you very much!
0
but when do I use them?