if i create an array of pointers to a structure "struct node" as:
struct node *r[n];
and create "n" number of "linked lists" and assign it to the various struct pointers r [i]using some function with a return type as structure pointer as:
r=multiplty(.......) /*some parameters*/
is it wrong to then use the individual array members like r[0],r[1] (which are now pointers to various linked lists) etc. as parameters to a function that accept a structure pointers as parameter like::
struct node *add_result;
add_result= add(r[o],r[1]);/*add() returns a struct pointer,no error shown in compilation */
the programme goes into an infinite loop whenever i try to display the list pointed by add_result..the functions add() and display() work fine in other cases..