
cprogrammings.blogspot.com
C Programming Language- Step by step learning.C Programming Language- Step by step learning. View my complete profile. Infolinks In Text Ads. C Programming Question IV. Q1: Tell how to check whether a linked list is circular. A: Create two pointers, each set to the start of the list. Update each as follows:. Pointer1 = pointer1- next;. Pointer2 = pointer2- next; if (pointer2) pointer2=pointer2- next;. If (pointer1 = pointer2) {. Print ( "circular n ");. Q2: OK, why does this work? Why is it difficult to store linked list in an array? Xc = 21.50;.
http://cprogrammings.blogspot.com/