Inadvisable.
This is prone to buffer overflows. Use std::getline or simply std::string.
Same applies for arrays on the stack.
In any case, if the teacher forces you to use Turbo C(++) and void main and other non-standard crap, then I think it is a good idea to drop the course, unless it's a requirement.
Learning outdated tools will not help you in real life in any way or form.