+ 3

[DUPLICATE] { static void Main(string[] args) } or { static void Main() }!??!!

whay?

26th Jan 2018, 6:55 PM
Ahmad Akil
Ahmad Akil - avatar
3 Answers
+ 12
if it is Java, see the 2nd slide of the lesson: syntax of main method https://www.sololearn.com/learn/Java/2137/?ref=app public static void main (String[] args)
26th Jan 2018, 7:02 PM
Hannah Grace
Hannah Grace - avatar
+ 2
its not java its c# , and when kip "(string[] args) " in the codes the running make no output but when i deleted it the running work good and he make the output
26th Jan 2018, 8:08 PM
Ahmad Akil
Ahmad Akil - avatar
+ 1
both are correct , it's void method that's way does not return any value .
13th Feb 2018, 3:59 PM
Sanket Pundge
Sanket Pundge - avatar