Section 132(3)(b) in The Code of Criminal Procedure, 1973
(b)"officer", in relation to the armed forces, means a person commissioned, gazetted or in pay as an officer of the armed forces and includes a junior commissioned officer, a warrant officer, a petty officer, a non-commissioned officer and a non-gazetted officer;