Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int a(int x)
- {
- return 1;
- }
- int b(int* p)
- {
- int x;
- x=*p++;
- p++;
- x++;
- return x;
- }
- void c(char *p, char x)
- {
- *++p=x;
- *p++='X';
- p+=2;
- *p=x;
- }
- int main()
- {
- int P[2][2]= {2,4,6,8};
- char Q[4]= {'A','E','I','O'};
- char z[12]="Mostar";
- int x=0,y=1;
- y=P[1][1]+Q[0];
- printf("%d\n",y);
- y=a(Q[1]);
- printf("%d\n",y);
- y=b(P);
- printf("%d\n",y);
- a(x);
- printf("%d\n",x);
- c(z,Q[2]);
- printf("%s\n",z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment