if else structure

My tutor of that time would certainly call it 'illiterate programming.' Why? There is nothing wrong!

You need to ask yourself - "What would K&R do?"

Functions are a special case (no pun intended), where the opening brace ALWAYS goes on a new line.