jos/user/divzero.c
Anish Athalye a9d7717cc4 Lab 3
2018-09-25 12:22:51 -04:00

14 lines
173 B
C

// buggy program - causes a divide by zero exception
#include <inc/lib.h>
int zero;
void
umain(int argc, char **argv)
{
zero = 0;
cprintf("1/0 is %08x!\n", 1/zero);
}