Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(void) {
- int *p, *q, i, v[2], *pv;
- void *qv;
- char R[]="ABCDEFGHI", *S;
- p = &i;
- *p = 5;
- q = p;
- p++;
- (*q)++;
- printf("%d %d %d\n", i, p - q, (int)p - (int)q);
- v[0] = 0; v[1] = 1;
- pv = v;
- pv++;
- *(pv) = *(v + 1) + 1;
- printf("%d %d\n", v[0], v[1]);
- qv = pv - 1;
- qv = qv + 1;
- *(int*)qv = 1;
- printf("%d %d\n", v[0], v[1]);
- S = R;
- while (*(S++) != ’\0’) *(S - 1) = *S;
- printf("<%s|%s>\n", R, S);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement