Explain the main function Why to use pointer here?
see this i have solved the same doubt of another student
if you have any more doubts you can ask here i will help you
i hope this helps
Please mark doubt as resolved if you have more doubts regarding this feel free to ask