鉴于主程序的标准定义:
int main(int argc, char *argv[]) {
...
}
Run Code Online (Sandbox Code Playgroud)
argcPOSIX系统在哪些情况下可以为零?
只是想知道这样投射是否安全:
char **cpp;
// ... allocation and what not
void *vp = (void *)cpp;
// ...
cpp = (char **)vp;
Run Code Online (Sandbox Code Playgroud)
应该使用无效**还是无效*罚款?这对我的几个盒子没有问题,但是想知道它是否会在某些系统上引起问题.