Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int a (int* x, int *y)
- {
- *y=*x/ *y;
- return *y;
- }
- int b(int *p, int x)
- {
- int *z=p;
- while(*z++<x);
- return z-p;
- }
- void c(char *p)
- {
- *(p+1)='-';
- *p++='-';
- p+=1;
- *p--='-';
- }
- int main()
- {
- int X[4]={19, 29, 39, 49};
- int Y[2][2]={5,6,7,8};
- char z[10]="Bijeljina";
- int y=1, x=1;
- y=Y[0][0]+ *(X+3);
- printf("%d\n", y);
- y=b(X, 40);
- printf("%d\n", y);
- b(Y, 39);
- printf("%d\n", y);
- a(&x, &y);
- printf("%d\n", x);
- c(z);
- printf("%s\n",z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement