summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/OR_PRACTICAL_C/14_10.c
blob: 987b2131505f56fd200828cf7269195cc703be6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
main()
{
    int i,j;    /* two random integers */

    i = 1;
    j = 0;
    (void)printf("Starting\n");
    (void)printf("Before divide...");
    i = i / j;  /* divide by zero error */
    (void)printf("After\n");
    return(0);
}