Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int fx(int a, int *b)
- {
- a += *b++;
- return a;
- }
- int fy(int* p)
- {
- int x;
- x=*p++;
- x;
- x+=*p++;
- return x;
- }
- void fz(char *p)
- {
- *p++='A';
- *(p+2)='A';
- p+=4;
- *p='A';
- }
- int main()
- {
- int X[4][4]= {1,2,3,4};
- int Y[4]= {50,60,70,80};
- char g[]="Travnik";
- int e=0,f=0;
- f=X[0][2]+*(Y+2);
- printf("%d\n",f);
- f=fx(f+1,X+1);
- printf("%d\n",f);
- f=fy(X);
- printf("%d\n",f);
- fx(e,&e);
- printf("%d\n",e);
- fz(g);
- printf("%s\n",g);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement