Write a program that uses a defined constant to (i) declare an int array, (ii) populate the array with scanf, (iii) print the last two array elements. The program must work with any array size by...


Write a program that uses a defined constant to (i) declare an int array, (ii) populate the array


with scanf, (iii) print the last two array elements. The program must work with any array size


by changing only the value of the defined constant.


Point out the errors in the following code:


#define SIZE3 = SIZE1 + SIZE2


#define SIZE1 10


#define SIZE2 20


printf(“SIZE3 = %d\n”, SIZE3);


...


int main(void)


...



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here