When the C program in our Virtual CPIC reaches the end it stops at the last line. In real life this is not what would happen.
A C program running on a PC would terminate and return to MS-DOS or Windows. In the case of a C program in the PICmicro the program would "run off the end" and career down memory doing whatever instructions it happens to find laying around.
We must remember therefore that our PICmicro C programs must never stop, but instead run in an "infinite loop"(i.e. a loop which never stops) at some point. Fortunately this is very easy to construct in C.
On the right you can see our statement program. If you run this it gets "stuck" at the end of the program.