单项选择题

若有如下程序:
sub(int a,int b,int c)
c=a+b;
return(c);
main()
int x=3,y=4,z=6;
sub(x,y,z);
printf('%d”,z);

则程序运行后的输出结果是( )。

A.3
B.6
C.7
D.4