演習 11-4

#include <stdio.h>
#include <string.h>

void put_string(const char *s){

    int i;

    for(i = 0; i < strlen(s); i++){
        printf("%c", *(s + i));
    }
}

int main(){

    char s[256];

    printf("入力 : ");    scanf("%s", s);

    put_string(s);

    return 0;
}

0 件のコメント:

コメントを投稿