Question: What does the following code fragment do? Do not compile and run this code. Determine what it does by simply looking at it. struct ABC{

What does the following code fragment do? Do not compile and run this code. Determine what it does by simply looking at it. struct ABC{ int x; double y; struct ABC *n; } *def = NULL; int i; for(i=0;ix = i; temp->y=0.0; temp->n = NULL; if (def!=NULL) temp->n = def; def = temp } Create a linked list of nodes in normal order (integer numbers stored from 0 to 9). Creates an array of nodes in reverse order (integer numbers stored in reverse order). Creates an array of nodes in normal order (integer numbers stored from 0 to 9). Create a linked list of nodes in reverse order (integer numbers stored in reverse order)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
