Woven by Toyota interview question

Understanding about pointer, the interviewer wrote some code and asked me the result/output in each scenario.