#include <stdio.h> void PrintTwo(int Val1, int Val2) { /* Print 2 ints on a line */ printf("%d %d \n",Val1,Val2); } int Larger(int IVal1,int IVal2) { /*Return the larger of 2 ints*/ if (IVal1>IVal2) return IVal1; return IVal2; } void main() { int X; X = -100; PrintTwo(X,Larger(X,200)); }Plain text to compile and run.
Yes, it is an expression ended by a semi-colon and so can be used as a statement.
Yes, it is quite legal to assign the result to a variable also used as a parameter.
-100 200