検索結果 1 件

by Bulls
2年前
フォーラム: C言語何でも質問掲示板
トピック: 新・明解 C言語 演習11-3を解けなくて困っています。
返信数: 2
閲覧数: 3575

新・明解 C言語 演習11-3を解けなくて困っています。

参考問題を書きかえて、str_copy関数の呼び出しをprintf関数の実引数とするプログラムを作成せよ。 <参考問題> #include <stdio.h> char *str_copy(char *d, const char *s) { char *t = d; while (*d++ = *s++); return t; } int main(void) { char str[128] = "ABC"; char tmp[128]; printf("str = \"%s\"\n", str); printf("コピーするのは : ", tmp); scanf("%s", tmp); st...

詳細検索ページへ移動する