怎样初始化一个链表呢?

u010179812 u010179812 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
如下程序我想初始化一个链表变量,但是第三个成员该怎么表示呢?

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>

struct name
{
char firstname[SIZE];
char lastname[SIZE];
struct name *next;
};

int main(void)
{
struct name *head = {"aaa","bbb", };//第三个成员该怎么表示了?

return 0;
}

...全文
评论 11
收藏 已收藏
分享
返回顶部
u010179812
C语言 70,039 成员 243,237 内容