cre
Wed Oct 16 2024 05:12:52 GMT+0000 (Coordinated Universal Time)
Saved by
@E23CSEU1151
#include <iostream>
using namespace std;
struct node{
int data;
struct node *link;
};
int main(){
struct node* head = new node;
head->data=45;
head->link=NULL;
cout << "new node " << head->data<<endl;
struct node* current = new node;
current->data = 98;
current->link = NULL;
head->link = current ;
cout << "new node " << current->data<< endl;
}
content_copyCOPY
Comments