Where are C/C++ main function's parameters?

前端 未结 10 1829
清酒与你
清酒与你 2020-11-29 02:31

In C/C++, the main function receives parameters which are of type char*.

int main(int argc, char* argv[]){
  return 0;
}

10条回答
  •  無奈伤痛
    2020-11-29 02:48

    While you are able to access to the actual parameters, I think their actual location does not matter at all.

提交回复
热议问题