怎么样正确编写函数
请问在编写函数时,void与return 0该怎么用,两个不可以同时出现在一个函数里吗
#include<stdio.h> int main() { int max(int x,int y); int a,b,c; scanf("%d %d",&a,&b); c=max(a,b); printf("%d\n",c); return 0; } void max(int x,int y) { int z; z=x>y?x:y; return; }有情人终成眷属了