Hello,
Can anyone tell me what's the convention for adding comments describing the pre and post condition of a function?
In my textbook it does the comments after the function's prototype. In one of my classes' lecture it does it near the method header:
void hey(int yo, int bye)
//comments
{
}
However, my TA said he most commonly sees it before the method header statement.
So I'm not too sure here. Thanks.