How can I write a function like calc(num1,num2,+) without using char for operators (+,-,*,/) in C?

后端 未结 0 495
悲&欢浪女
悲&欢浪女 2020-12-17 23:15

I want to write a function to calculate two numbers calc(num1,num2,+) like calc(5, 10, +). But I mustn\'t use char for operators.

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