回答編集履歴

3

修正

2016/11/17 12:33

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
  printf("%c",toupper(*favoritevegetable));
50
50
 
51
- printf("%s",toupper(favoritevegetable+1));
51
+ printf("%s",favoritevegetable+1);
52
52
 
53
53
  printf(" is your favorite vegetable!\n");
54
54
 

2

訂正

2016/11/17 12:32

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -12,13 +12,11 @@
12
12
 
13
13
 
14
14
 
15
- char *vegetables[]={"tomate", "cabbage", "eggplant"};
16
-
17
15
  int main() {
18
16
 
19
17
  int i;
20
18
 
21
-
19
+ char *vegetables[]={"tomate", "cabbage", "eggplant"};
22
20
 
23
21
  printf("Suppose that we now have (0) %s, (1) %s, (2) %s.\n",
24
22
 

1

変更

2016/11/17 01:01

投稿

A.Ichi
A.Ichi

スコア4070

test CHANGED
@@ -48,7 +48,7 @@
48
48
 
49
49
 
50
50
 
51
- printf("%c",toupper(favoritevegetable[0]));
51
+ printf("%c",toupper(*favoritevegetable));
52
52
 
53
53
  printf("%s",toupper(favoritevegetable+1));
54
54