Question: 1. Give the program output. Figure 1 shows, the illustration of the program. #include #include struct node [ int num; struct node *nextptr; 1 *stnode;

 1. Give the program output. Figure 1 shows, the illustration of

1. Give the program output. Figure 1 shows, the illustration of the program. #include #include struct node [ int num; struct node *nextptr; 1 *stnode; typedef struct node Node; int main() { //Data of the node //Address of the node Node nl,n2, n3, *tmp; ni.num 15; nl.nextptr=&n2; n2.num=20; n2.nextptr=&n3; n3.num-25; n3.nextptr=NULL; tmp = &nl; while (tmp != NULL) 1 printf(" Data = $d ", tmp->num); // prints the data of current node tmp = tmp->nextptr; // advances the position of current node } Figure 2. Modify the program from question 1. that able to read at least 3 student record. Your program must apply struct mechanism for student information and the struct members can be defined as following. 00 Student name (ii) Student age Student course (iv) Student cgpa (v) Node point to next node (student) count 2 count 3 count 1 not null not null not null Node 1 Node2 Node3 15 2000 - 20 3000 25 4000 a null 1000 Memory Address of Current Mode 2000 Memory Acress at Current Note 3000 MemoryAdress of CentNode NULL Figure 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!