linear search program in c using flag