+ 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?
3 ответов
+ 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.
+ 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 ☺
+ 1
thank you :)