Core Features

Main function

A place that decides everything.

Main function is where the code of a program is executed from the start to the end. It must be defined with the exact syntax as shown below:

No exception!
int main(string args[]){

  # code ...

  return 0;
}
The return value can be zero or non-zero integer!
  • zero indicates a success.
  • non-zero indicates a failure.

You have to write exactly the same as the model shown above, meaning that

  • Return type must be int.
  • Function name must be main
  • Type of parameter must be string, string array.
  • Number of parameter must be only one
  • Parameter name must be args.
Copyright © 2026