Answers for "how to read a array from an c function"

C
5

take array as input in c

int size=5;
int array[size]; // array of size=5;

for(i=0;i<size;i++){
   scanf("%d",&array[i]);
                }
Posted by: Guest on November-05-2020
1

passing an array to a function in c

...
int arr[M][N];
...
void randomArrayFill(int arr[M][N]) {
//body
}
Posted by: Guest on September-08-2021

Code answers related to "how to read a array from an c function"

Code answers related to "C"

Browse Popular Code Answers by Language