Комментарии:
isse bura aaj tuk kisi teacher ne nahi pdhaya, by the way that temp was a temprary variable ,which was used to store the value of newlist[0], which makes newlist[0] empty, now put newlist[size-1] value and put it in newlist[0], then in that last line newlist[size-1]gets the value of temp, and hence the elements gets interchange.
Ответитьgood job
ОтветитьThank you Ma'am for making the explanation of this video, helped a lot 🤍
Ответить