//array[n]; //write write(fd[1], array, sizeof(int) * n); //n is how much number does it have to write //read read(fd[0], array, sizeof(int) * n); //n is how much number does it have to read //You need to know the size of your array