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

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