Advertisement
Adijata

ispis 1

Sep 21st, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int a (int* x, int *y)
  4. {
  5. *y=*x/ *y;
  6. return *y;
  7. }
  8.  
  9. int b(int *p, int x)
  10. {
  11. int *z=p;
  12. while(*z++<x);
  13. return z-p;
  14. }
  15.  
  16. void c(char *p)
  17. {
  18. *(p+1)='-';
  19. *p++='-';
  20. p+=1;
  21. *p--='-';
  22. }
  23. int main()
  24. {
  25. int X[4]={19, 29, 39, 49};
  26. int Y[2][2]={5,6,7,8};
  27. char z[10]="Bijeljina";
  28. int y=1, x=1;
  29. y=Y[0][0]+ *(X+3);
  30. printf("%d\n", y);
  31. y=b(X, 40);
  32. printf("%d\n", y);
  33. b(Y, 39);
  34. printf("%d\n", y);
  35. a(&x, &y);
  36. printf("%d\n", x);
  37. c(z);
  38. printf("%s\n",z);
  39. return 0;
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement