回答編集履歴

1

変数 c の除去

2020/02/29 16:55

投稿

kazuma-s
kazuma-s

スコア8224

test CHANGED
@@ -10,11 +10,11 @@
10
10
 
11
11
  {
12
12
 
13
- char *p1 = moji, *p2 = moji, c = 0xe2;
13
+ char *p1 = moji, *p2 = moji;
14
14
 
15
15
  while (*p1)
16
16
 
17
- if (*p1 == c) p1 += 3;
17
+ if (*p1 == '\xe2') p1 += 3;
18
18
 
19
19
  else *p2++ = *p1++;
20
20