SHARE
TWEET

Untitled

a guest Nov 17th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4.  
  5.  
  6. int main(int argc, char *argv[])
  7. {
  8.     int tab[10] = {0,1,2,3,4,5,6,7,8,9};
  9.     int temp = tab[9];
  10.  
  11.     for(int i=10-1; i>0; i++) {
  12.         tab[i] = tab[i-1];
  13.     }
  14.  
  15.     tab[0] = temp;
  16.  
  17.     for(int i=0; i<10; i++) {
  18.         printf("%d", tab[i]);
  19.     }
  20.  
  21.     return 0;
  22. }
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. OK, I Understand
 
Top