Infinite Loop question?

 
Hello,

I wanted to ask a question: Lets say we have the following code:

int Start()
{

while(IsStopped==False) // endless loop
{

trading strategy code is inserted here......

}

Return(0) // Question is must I have this line at all ???
}

Question is: Must I have a return(0) line just before last bracket? My expert seems to work without having return(0) anywhere within my code. Is this ok to do this if using endless loop method ?

Thanks in advance

Regards

RJF
 
return in the start function is optional.

But programming rule is: "if some function has type then function must return value of this type"
 
return in the start function is optional.

But programming rule is: "if some function has type then function must return value of this type"


thank you Slawa. much appreciated.
Reason: