+ 1

Syntax of c#

static voidmain( string [] arg) I know the meaning of void and main. and know why it is use.. bt can anyone brief ly explain why static use ? in the beginning? and why string [] arg use in the bracket? and [] -. what does it mean s?

5th Jun 2017, 3:00 AM
Ranjit Hansdah
Ranjit Hansdah - avatar
3 Respuestas
+ 6
I suggest you continue further into the c# course first. Diving right into what static means will barrel you in confusion. So, for now I will dodge your question, just know you need it in every program. Although: [] is an array. So string[] args is an array of type string with the name args. You can change the name to whatever you want.
5th Jun 2017, 3:23 AM
Rrestoring faith
Rrestoring faith - avatar
+ 5
Exactly @Rrestoring, agree with you. Definitely finish the fundamental part of the C# course before thinking too much about the syntax. It seems confusing at first, but it will clear up as you keep learning. If you still have any difficulty, everyone will be more than happy to help you out ☺
5th Jun 2017, 5:40 AM
Nihar Raote
Nihar Raote - avatar
+ 1
thank you :)
5th Jun 2017, 3:25 AM
Ranjit Hansdah
Ranjit Hansdah - avatar