My issue
I have written the code and got the output as expected in the queation, still getting the error. If anybody got it, then please help.
My code
#include <stdio.h>
int main() {
int even_numbers[4] = {0, 2, 4, 5};
int size = sizeof(even_numbers)/sizeof(even_numbers[0]);
int newValue = 6;
even_numbers[3] = 6;
for(int i = 0; i<4; i++){
printf("%d\n",even_numbers[i]);
}
return 0;
}
Learning course: Data structures & Algorithms lab
Problem Link: https://www.codechef.com/learn/course/muj-dsa-c/MUJDSAC05/problems/CLB088