1,394 reputation
144
bio website
location Kolkata, India
age 26
visits member for 2 years, 1 month
seen Dec 4 at 10:29

*** 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]


Nov
16
awarded  Yearling
Nov
10
answered Running executable files in GUI
Nov
4
awarded  Great Answer
Sep
24
awarded  Autobiographer
Mar
25
awarded  Supporter
Mar
18
awarded  Guru
Jan
24
awarded  Good Answer
Nov
16
awarded  Yearling
Oct
18
awarded  Nice Answer
Nov
16
awarded  Teacher
Nov
16
answered How to delete a non-empty directory in Terminal?