What's the difference between return (0); and return 0;

No difference. return is not a function, but an operator.
It is like int a = (3);

there is no difference between them

if you are an expression we use brackets like

return(a+b)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.