int test(int& a, char b, string s, int d)
where name defined as string, age as integer, and grade as char
cout << test(5, grade, name, age);
Uhm, if test returns anything then you're doing it right. If your test function returns an int then it'll cout the integer.