C argc引數

  • 18957
  • 0
  • C

摘要:C argc引數

argc argc用法
 
int main(int argc, char **argv)
 
假設執行為:  test.exe  a b c
 
則輸出為:   argv[0] = test.exe, argv[1] = a, argv[2] = b, argv[3] = c
 
argc = 4