Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main(int argc, char ** argv)
  4. {
  5. char str[] = "sihtgubed";
  6. char *stri = &str[8];
  7. char *buf[9];
  8. char **bufi, **bufend;
  9. bufi = buf;
  10. bufend = &buf[9];
  11.  
  12. while (bufi != bufend){
  13. *bufi = stri;
  14. bufi++;
  15. stri--;
  16. }
  17.  
  18. while (bufi != buf){
  19. bufi--;
  20. *(*bufi) -= 32;
  21. }
  22.  
  23. while (bufi != bufend){
  24. printf("%c", **bufi);
  25. bufi++;
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement