In C++, this weird syntax is no longer necessary. So it is absolutely understandable if your teacher tells you not to do it (it still works). But he should have told you why they did it otherwise in C.