Difference between operator and function in C++?

后端 未结 8 515
夕颜
夕颜 2021-02-01 08:31

I could use some help understanding the following in C++, particularly the difference between an operator and a function:

  • What is an operator?
  • What is a f
8条回答
  •  长发绾君心
    2021-02-01 08:48

    There is no meaningful difference between operators and functions, except that operators have a different syntax. Primitive operators however are not functions.

提交回复
热议问题