   FunctionA(array[].something)??
  I want to create the function that can check all data in arrayfor example::int functionA(int array[],　int total){int min = xxx;for(int i=0; i< total; i++){array < minmin = array;}}return min;void main(){int min;min = functionA(test[],12); // I tested and it is impossible}I have to do the long code comparison value so It will be niceif I can make function which can do for me in short paragraphcan anyone suggest/
  int arraycheck(int* array, int dim){for(int i = 0; i < dim; i++){//do something with array}return 0;}also the body of your function doesnt make any sense, there seems to be an if missingn which sets array to min regardless.;Quote:Original post by mrchrismnhint arraycheck(int* array, int dim){for(int i = 0; i < dim; i++){//do something with array}return 0;}also the body of your function doesnt make any sense, there seems to be an if missingn which sets array to min regardless.Thanks for your help.I already know about your code.the problem is how can I pass array in void main()like I mention, wellint test[3]int a;a = arraycheck(test??,3);I do not know how to pass the test array;  You just use the name:a = arraycheck(test, 3);   ;  The [number] is part of the variable type, not the name. Therefore, you leave it off when you use the variable, e.g. to call a function. It's exactly the same as how you write, for example, "void foo(int bar)" to declare a function, but "foo(bar)" to call it.   