3
어떻게 함수를 호출하기 위해 변수를 사용할 수 있습니까?사용자 입력이 함수를 호출하는 방법 C
char user_function[10];
scanf("%s", user_function);
user_function(); //Calls the function named user_function that the user typed
char user_function[10];
scanf("%s", user_function);
if(strcmp(user_function, 'printf()'))
printf();
경우입니다 당신이 사용하고 싶지 않다면 스위치를 사용하십시오. – Alon