C语言中 return

来源:百度知道 编辑:UC知道 时间:2024/06/01 15:17:04
return 返回值加括号 和不加括号 有啥区别
不要复制粘贴
可是我做题的时候
加括号 和 不加括号 得分不一样啊~~

没区别~~

没区别,不过加个括号看起来更清楚而已

确实没区别……
return n;
return (n);都一样使用
####################
你把代码贴出来,我们帮着分析一下

Many programmers use parentheses to enclose the expression argument of the return statement. However, C does not require the parentheses.

根本没区别的!