Skip to main content
Share Your Experience: Take the 2024 Developer Survey
Shantanu Banerjee's user avatar
Shantanu Banerjee's user avatar
Shantanu Banerjee's user avatar
Shantanu Banerjee
  • Member for 11 years, 7 months
  • Last seen more than 4 years ago
Stats
435
reputation
61k
reached
1
answer
5
questions
Loading…
About

*** Main Functions ***


C and C++

int main(void);
int main();

int main(int argc, char **argv);
int main(int argc, char *argv[]);
int main(int argc, char **argv, char **envp);

JAVA

public static void main(String[] args)
public static void main(String... args)
public static void main(String args[])

PYTHON

def main():
# the main code goes here

if __name__ == "__main__":
main()

PIKE

int main(int argc, array(string) argv)

SCALA

def main(args:Array[String])

RUBY

self # => main
self.class # => Object
self.class.ancestors # => [Object, Kernel]

2
gold badges
6
silver badges
17
bronze badges
2
Score
1
Posts
17
Posts %
2
Score
1
Posts
17
Posts %
0
Score
4
Posts
67
Posts %
0
Score
2
Posts
33
Posts %
0
Score
2
Posts
33
Posts %
0
Score
1
Posts
17
Posts %
Top posts