1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

引数の総和を求める

1
Posted at

とあるツイート をうんうん考えて結局題意からそれていたので供養.

もちろんめちゃくちゃ warning が出る.

main.c
main(c, v) char **v; { return --c ? v[c] = atoi(v[c]) + v[c+1], main(c, v) : printf("%i\n", v[c+1]); }
$ gcc main.c
$ ./a.out 1 2 3 4 5 6 7 8 9 10
55
1
0
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?