Check if two vectors are collinear or not

#include using namespace std;  void crossProduct(int vect_A[],                  int vect_B[],                  int cross_P[]){        cross_P[0]        = vect_A[1] * vect_B[2]          – vect_A[2] * vect_B[1];          cross_P[1]        = vect_A[2] * vect_B[0]          – vect_A[0] * vect_B[2];          cross_P[2]        = vect_A[0] * vect_B[1]          – vect_A[1] * vect_B[0];}  void checkCollinearity(int x1, int y1,                       int z1, int x2,                       int y2, int z2){        int A[3] = { x1, y1, z1 };    int B[3] = { x2, y2, z2 };          int cross_P[3];          crossProduct(A, B, cross_P);              if (cross_P[0] == 0 && cross_P[1] == 0        && cross_P[2] == 0)        cout