Advertisement
MikecIT

Funkcije - 8.

Dec 8th, 2014
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. int *pretpoz(int x[],int n, int *br)
  2. {
  3.    int *poc;
  4.    for(poc=x;poc<x+n;poc++)
  5.    {
  6.     if(*poc>0)
  7.     {
  8.         return *poc;
  9.     }
  10.     else
  11.     {
  12.         (*br)++;
  13.     }
  14.    }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement