Shantanu Banerjee

less info
222 reputation
312
bio website
location Kolkata, India
age 25
visits member for 1 year, 11 months
seen Mar 25 at 10:55

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


Ask Ubuntu 964 rep 33
Stack Overflow 517 rep 1730
Raspberry Pi 222 rep 312
Unix & Linux 182 rep 110
Super User 139 rep 3

5 Votes Cast

all time   by type  
5 up 2 question
0 down 3 answer