0

Why are curly brackets used in java..??

9th Nov 2019, 5:43 PM
Gyan prakash Mishra
Gyan prakash Mishra - avatar
2 ответов
+ 4
Curly brackets are used in many programming languages for block of code For example int main () { Cout<<"you have to understand man""; } This is to contain the code in the main function that is the int main
9th Nov 2019, 7:56 PM
Isaac Duah [Active!]
Isaac Duah [Active!] - avatar
+ 1
for scoping. in other words: to show you in what code block you are working. a statement followed by { says: “hey, everything following the { goes with me and only ends when I see }
9th Nov 2019, 6:31 PM
Brave Tea
Brave Tea - avatar