Parentheses?

This code snippet is from Tier One: C++ Beginner's Guide by Herb Schildt

Is there some proper etiquette used here to give reason to the parentheses in question?


1
2
3
4
5
6
7
8
9
10
11
// Iterative version
float fact(int n)
{ 
	int t; 
	float a;

	a = 1;
	for(t=1; t<=n; t++) a = a *(t); //why the parentheses enclosing (t) here?
	return (a); // and (a) here??
}
I don't see any reason for enclosing (t).
As for (a), some people use the return statement as a function. It's totally style dependent to use this or that.
Thanks!! Just trying not to create bad habits.
Topic archived. No new replies allowed.