#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
char* solution(const char* my_string) {
    char* answer = (char*)malloc(strlen(my_string));
    for(int i=0; i<=strlen(my_string); i++){
        answer[i]=my_string[strlen(my_string)-1-i];
    }
    return answer;
}

'전공부셔 > c' 카테고리의 다른 글

정렬  (0) 2023.02.26
[프로그래머스] 숨어있는 숫자의 덧셈 (1)  (0) 2023.02.26
배열 원소 개수  (0) 2023.02.26
size_t, unsigned int 차이  (0) 2023.02.26
bool  (0) 2023.02.26

+ Recent posts