Odpowiedź:
int isInArray(int* arr, int size, int value) {
for (int i = 0; i < size; i++) {
if (arr[i] == value) {
return 1;
}
return 0;
" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2024 KUDO.TIPS - All rights reserved.
Odpowiedź:
int isInArray(int* arr, int size, int value) {
for (int i = 0; i < size; i++) {
if (arr[i] == value) {
return 1;
}
}
return 0;
}