Adijata

ispis 2

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