Thinking questions on June 9

From , 5 Years ago, written in C, viewed 198 times.
URL https://pastebin.vip/view/12ffb096
  1. #include <stdio.h>
  2. void fun(char *s) {
  3.   int i;
  4.   char t = *s;
  5.   for (i = 0; *(s + i + 1) != '\0'; i++)
  6.     *(s + i) = *(s + i + 1);
  7.   *(s + i) = t;
  8. }
  9. main() {
  10.   char s1[100] = "ABCDEFG", s2[100] = "xyzabc";
  11.   fun(s1);
  12.   fun(s2);
  13.   puts(s1);
  14.   puts(s2);
  15. }

Reply to "Thinking questions on June 9"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website