0

What is the difference between () and []?

4th Jul 2019, 5:07 AM
John Andrew
John Andrew - avatar
2 Respostas
+ 1
I don't see how would you confuse those two. [] is used for declaring arrays and accessing its elements, and () is used for function parameters mostly
4th Jul 2019, 5:28 AM
Airree
Airree - avatar
0
Thanks! I'm just started learning c#, my first programming language since unity got my interest and its a little bit confusing to me.
4th Jul 2019, 5:35 AM
John Andrew
John Andrew - avatar