Update qa.c

Moved array length to its own variable