stdio.h
을 헤더 파일로 포함하지 않고 C 프로그램을 작성할 수있는 방법이 있습니까? 그것은 당신과 함께 scanf
함수를 선언 할 수 extern int scanf(char* format, ...);
stdio.h를 포함하지 않고 scanf() 사용 방법
#include <stdio.h> //I want this same code to work without including this line
int main()
{
char str [80];
scanf ("%s",str);
return 0;
}
왜 'stdio.h'를 포함하는 것이 좋지 않다고 생각하십니까? –
C++이 아닌 C에서, 당신이 생각하는'stdio.h'가 더 자주 필요합니다. 예를 들어 C에서'NULL '은 어디에 정의되어 있습니까? – cdarke
@WouterHuysentruit 가능한 해결책이 있는지 알고 싶습니다. – Niko