Code:
int points_count = 1;
int *new_x = NULL;
new_x = realloc(new_x, points_count * sizeof (int));
Should it be a valid code or not?