三次方

关注

Typedef的用法

三次方

关注

阅读 85

2022-01-06

typedef的用法

#include<stdio.h>

typedef struct student
{
	int a;
	char name[100];
	char sex;
}*PST, ST;      //  PST代表struct student *   ST代表struct student
int main(void)
{
//	struct student sy;
//	struct student* pst = &sy;

	ST st;
	PST ps = &st;
	ps->a = 99;
	printf("a = %d\n\r",ps->a);

	return 0;
}

在这里插入图片描述

相关推荐

想溜了的蜗牛

[typedef]typedef的高级用法

想溜了的蜗牛 158 0 0

践行数据分析

typedef用法

践行数据分析 91 0 0

嚯霍嚯

C语言typedef的用法

嚯霍嚯 168 0 0

捡历史的小木板

typedef enum与enum的用法

捡历史的小木板 200 0 0

_铁马冰河_

typedef详细用法讲解

_铁马冰河_ 115 0 0

八卦城的酒

typedef 和 # define 用法区别

八卦城的酒 88 0 0

juneyale

【FPGA】Verilog 中 typedef enum 用法教程

juneyale 36 0 0

烟中雯城

结构体定义 typedef struct 用法详解和用法小结

烟中雯城 149 0 0

香小蕉

struct 和 typedef struct 区别和用法总结

香小蕉 141 0 0

雷亚荣

C语言的typedef在嵌入式中的用法

雷亚荣 89 0 0

精彩评论(0)

0 0 举报