C언어 strrev() 함수가 작동되지 않습니다.
치에미
2023.04.01
질문 제목 : c언어 strrev() 함수가 작동되지 않습니다.c언어 strrev() 함수가 작동되지 않습니다.질문 내용 :
#include stdio.h
#include string.h
int main(void)
{
char * str = hello;
printf(%s\n, strrev(str));
return 0;
}
컴파일은 정상적으로 되나 프로그램을 실행하면 프로그램이 팅기는 현상이 있습니다. 왜 그러는걸까요?
-
부루
#include iostream
#include cstring
using namespace std;
int main(void)
{
\tchar str[] = \Hello!\;
\t
\tprintf(\%s\\n\