如题所述
默认是int的。对于这个代码:
编译器会出现如下警告:
warning: return type defaults to ‘int’ [-Wreturn-type]
说,你没有指定返回类型,默认为int。