Why doesn't “return;” terminate my function?

前端 未结 0 1699
悲哀的现实
悲哀的现实 2020-12-04 15:46

here is my code :

void newCopy(ListNode* n, List* l) {
    if (n == NULL) { return; }

    if (n->next == NULL) {
        push(n->data, l);
        retu         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题