Two general characteristics enable MS-DOS programs to operate on various computers and to avoid corruption of code and data: device independence and cooperation. The next two sections present guidelines for writing programs that use these characteristics effectively.