What does (void)var actually do?

后端 未结 4 590
Happy的楠姐
Happy的楠姐 2020-12-03 05:28

Consider the following main():

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

Upon compilation with cc -Wall -Wext

4条回答
  •  北海茫月
    2020-12-03 06:00

    This may increase the code efficiency because the call of function dont need to load the registers for arguments.

提交回复
热议问题