search

Home  >  Q&A  >  body text

Default parameter problem

The ternary operator cannot filter 0

func(0, 10);

The above call, the expected result is 10, but it will get 610, which is the fault of the ternary operator

西伯利亚狼西伯利亚狼1260 days ago835

reply all(1)I'll reply

  • 猪老湿

    猪老湿2021-06-21 09:48:18

    I didn’t see what you were asking, has it been solved?

    reply
    0
  • Cancelreply