where command line arguments are stored?

前端 未结 4 1915
逝去的感伤
逝去的感伤 2021-01-13 16:29

I have a doubt @ the storage of command line arguments.

myprog.exe -cfgfile myconfig.cfg

commandline args are passed when process gets created so are they

4条回答
  •  盖世英雄少女心
    2021-01-13 16:56

    in Linux : command line arguments will get stored in stack. dont confuse environmental variable with command line args, process address space have separate memory area for environmental variables

提交回复
热议问题