iASYS interview question

C programming questions, logical reasoning