Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void getMinMax(int *polje, int velicina, int *min, int *max){
- *min = polje[0];
- *max = polje[0];
- for (int i = 0; i < velicina; i++){
- if (polje[i] < *min) //polje[i] == *(polje + i)
- *min = polje[i];
- if (polje[i] > *max)
- *max = polje[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement