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)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here