/*------------------------------------------------------------------------------ * File: p3.c * Function: Prints out variables according to their Data Type with the size and the ranges of the variables * Description: This C program outputs numbers using * Input: None * Output: " * Author(s): Noah Woodlee * Lab Section: 09 * Date: Aug 20, 2021 *----------------------------------------------------------------------------*/ int a[5]={0xA, 0x6, -0x8, 0x5, 0xC}; int b[5] = {0xD, -0xE, 0x7, 0x2, 0x1}; int orOp_0 = (0xA | 0xD); int andOp_0 = (0xA & 0xD); int orOp_1 = (0x6 | -0xE); int andOp_1 = (0x6 & -0xE); int orOp_2 = (a[2] | b[2]); int andOp_2 = (a[2] & b[2]); int orOp_3 = (a[3] | b[3]); int andOp_3 = (a[3] & b[3]); int orOp_4 = (a[4] | b[4]); int andOp_4 = (a[4] & b[4]); printf("Input array a: {0xA, 0x6, -0x8, 0x5, 0xC}\n"); printf("Input array b: {0xD, -0xE, 0x7, 0x2, 0x1}\n"); printf("The OR opperation for the 0th element is: %o",(a[0] | b[0]));