My issue
What is run time error
My code
#include <stdio.h>
int main() {
int arr1[100] = {2, 4, 6}; // First array
int size1 = 3;
int arr2[100] = {8, 10, 12, 14}; // Second array
int size2 = 4;
int merged[100]={2,4,6,8,10,12,14};
int mergedSize=7;
for(int i=0;i<mergedSize;i++){
scanf("%d",merged[i]);
}// Update the code below to solve the problem
// Print the merged array
for (int i = 0; i < mergedSize; i++) {
printf("%d ", merged[i]);
}
return 0;
}
Learning course: BCS301: Data structures
Problem Link: https://www.codechef.com/learn/course/abesit-dsa/ABESITDS05/problems/DSAAGP09