SHARE
TWEET

Untitled




Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int main(int argc, char *argv[])
- {
- int tab[10] = {0,1,2,3,4,5,6,7,8,9};
- int temp = tab[9];
- for(int i=10-1; i>0; i++) {
- tab[i] = tab[i-1];
- }
- tab[0] = temp;
- for(int i=0; i<10; i++) {
- printf("%d", tab[i]);
- }
- return 0;
- }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.