Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 
avatar of Shantanu Banerjee

Shantanu Banerjee

Shantanu Banerjee has asked 8 questions and find answers to 3 problems.

Stats

119
EtPoint
26
Vote count
8
questions
3
answers

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]