[IT] C언어 입문(12) structure, union, enumerated types - 구조체, 공용체, 열거체 □ structure / union / enumerated types * Arguments to main() - To communicate with the OS - argc: the number of command line arguments // argc, argy 변수의 이름은 관례이므로 바꿔도 오류는 안 남 - argv: an array of strings - The strings are the words that make up the command line - argv[0] contains the name of the command itself - 사용자가 인자를 프로그램에 직접 주기 위해 사용, 명령 프롬프트! --- #include int main(int argc, char *argv[]) { .. 2021. 9. 11. 이전 1 다음