_includes/code/overflow.c
/*
 * Function to read an array and return the product of
 * all the elements in the array.
 */
Function to read an array and return the product of
all the elements in the array.
Function to read an array and return the product of all the elements in the array .
long serial_mult(void)
{
    long a[5];
    int size;
    int i;
    long ret;
    printf("Enter array size\n");
    scanf("%d", &size);
    printf("Enter array the array\n");
    for (i=0; i < size; ++i) {
        scanf("%ld", &a[i]);
    }
    ret = 1;
    for (i=0; i < size; ++i) {
        ret *= a[i];
    }
    return ret;
}
long serial_mult ( void ) { long a [ 5 ] ; int size ; int i ; long ret ; printf ( " \n " ) ; scanf ( " " , & size ) ; printf ( " \n " ) ; for ( i = 0 ; i < size ; ++ i ) { scanf ( " " , & a [ i ] ) ; } ret = 1 ; for ( i = 0 ; i < size ; ++ i ) { ret *= a [ i ] ; } return ret ; }
Function to read an array and return the product of
 all the elements in the array.
Function to read an array and return the product of all the elements in the array .