The second assignment gives an error (a value of type "int" cannot be assigned to an entity of type "int *"), why isn't the same error showing up for the first assignment?
#include <bits/stdc++.h>
using namespace std;
int main()
{
int* x = new int[100];
x[5] = 3;
int* y[100];
y[5] = 3;
return 0;
}