Which of the following is used to enclose the body of a function?
a) [ ]
b) { }
c) ( )
d) None of these
Answers
Answered by
45
{ } is used to enclose the body of a function.
Answered by
14
Here option, b is the right one. The symbol { is referred to as the open curly bracket or open bracket while } is referred to as the close curly bracket or close bracket.
The curly brackets are used for the purpose of grouping. In programming language the use of curly brackets denote the opening and closing of the main( ) function.
Similar questions