# exit

## NAME

**exit** - ends the script with the given result code

## SYNOPSIS

*void* **exit**(0: *int*);

**exit** takes one positional argument.

## DESCRIPTION

exit ends the script with the given result code.

## EXAMPLES

```cpp
exit(1);
```
