Are parentheses around the result significant in a return statement?

前端 未结 11 2348
感情败类
感情败类 2020-11-27 12:07

Is there a difference between these two statements inside a function?

bool returnValue = true;
// Code that does something
return(returnValue);
11条回答
  •  抹茶落季
    2020-11-27 12:14

    No difference!!

    People use parenthesis if there's a complex expression involved.

    BTW return is a statement not a function.

提交回复
热议问题