<p>How can I compile/run C or C++ code in a Unix console or a Mac terminal?</p>

Assuming the current directory is not in the path, the syntax is
```
./[name of the program]
```
.
For example
```
./a.out
```