Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- //Interschimbare octeti.
- int main()
- {
- int x = 20;
- char *p = &x;
- char *p2 = p + 1;
- int aux = *p;
- *p = *p2;
- *p2 = aux;
- printf("%d",x);
- return 0;
- }
- //sau
- #include <stdio.h>
- #include <stdlib.h>
- //Interschimbare octeti.
- int main()
- {
- int x = 20;
- char *p = &x;
- char *p2 = p + 1;
- char aux = *p;
- *p = *p2;
- *p2 = aux;
- printf("%d",x);
- return 0;
- }
Add Comment
Please, Sign In to add comment