functions passing values
here i've doubt.here in this program just i called one function and displayed the values.but i'm not returing any value ,but i'm getting one value .please tell me why it's comming ?
printf("%d %d %d \n",i,j,k);
max(int i,int j)
Try declaring your function as void max(int, int);
Why do you think it returned a value? It didn't. When you assign a variable like this, the behavior is undefined. The avoid this, add the keyword "void" before the function. If no keyword is present, the default is "int"! But besides that, it just looks sloppy to leave it blank like that.
I think there should be an error message.