qcode
  • 创作工场专业版,一问多答!更智能、更完整、更原创
  • 这是一个超强内容创作平台,它会写文章、做设计、绘图、敲代码,有问必答!
🔥点击使用-免登录深度版🔥

#include<stdio.h>

时间2023-04-25 14:17:23 提问来自 广东省河源市 的网友 分类创作 浏览399
#include<conio.h> #include<stdlib.h> struct node { int info; struct node *next; }; struct node *start=NULL; void create_list(int data) { struct node *q,*temp; temp=(struct node *)malloc(sizeof(struct node)); temp->info=data; temp->next=NULL; if(start==NULL) //if list is empty //for the first time only! { start=temp; //start will store the address of the first element of the list.//it will be same till the end of list.//last element points to NULL so start also points to NULL at last!//so we can say that start is a pointer variable which always stores address of first element in it!//so when ever we want to access any element in linked list we have to use start variable to access it!//in array we can directly access any element using its index but in linked list we have to use its address and for that purpose start variable is used!///now if you want to know why this statement "temp->next=NULL" has been used then please read my notes carefully because i have explained it there in detail!!///now lets move forward..!!/////now lets move forward..!!/////now lets move forward..!!/////now lets move forward..!!/////now lets move forward..!!/////now lets move forward..!!/// now if you want to know why this statement "temp->next=NULL" has been used then please read my notes carefully because i have explained it there in detail!!///now lets move forward..!!/////now lets move forward..!!/////no

不满意?免费深度重写!

免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。

上一篇 基于SSM框架平台设计与实现的论文进度安排 下一篇 电极丝有哪些方面的性能需要检测