How to use the main with arguments?

后端 未结 0 1232
無奈伤痛
無奈伤痛 2020-12-13 03:13

here is my example:

main(int num1, int num2)
{
   printf("%d", num1*num2);
   return 0;
}

The problem is: I run: ./calculator.out 1

相关标签:
回答
  • 消灭零回复
提交回复
热议问题