1
Is there any way to access only a specific part of an array in c? For example, in python it is possible for me to access a specific part of an array.
array[10] = 1,2,3,4,5,6,7,8,9,10
array[4:8] = 5,6,7,8
I wanted to know if you have something similar in c, I need to pass a specific part of an array to a function. My array is a string array. So:
char** string = = malloc(1000 * sizeof(char *));
I wanted to move to a function the matrix from position 0 to position 500.
What is this function like? It takes the size of the array as argument?
– Guilherme Bernal
It is a function of MPI, the Broadcast function, wanted to send a piece of the matrix for each process.
– 4ndr3