Excuse me, return num = = n; what does it mean?
Num is equal to N, equal to true, not equal to false.
The bool value of the expression num = = n is calculated first, and then the bool value is returned. This is actually not essentially different from return 3-2
returnThey are last executed, so your sentence is equivalent to that.
var flag = num == n; return flag;
First = = the result of execution is a boolean type, either true (1) or false (0).
So the problem is converted to: