Posted by Anonymous on Mon 13th Aug 21:25
download
- /*************************************
- *Function: check()
- *Arguments: int zahl, int arr2[6]
- *
- *Checks if the value of 'zahl' has already been used in the
- *array before and returns TRUE if so. Otherwise it returns FALSE.
- *************************************/
- int check(int zahl,int arr2[6]){
- int i = 0;
- int duplikat = 0;
- for(i = 0;i<6;i++){
- if(arr2[i] == zahl) duplikat = 1;
- }
- return duplikat;
- }
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.