example:
#include<stdio.h>
int main(){
//整型
int a = 10;
int *p = &a;
//字符型
char c = 'c';
char *pc = &c;
//结构体指针变量
struct Test t1 = {10,'c'};//1.类型 2.名 3.值 4.地址
struct Test *pt = &t1;
return 0;
}
example:
#include<stdio.h>
int main(){
//整型
int a = 10;
int *p = &a;
//字符型
char c = 'c';
char *pc = &c;
//结构体指针变量
struct Test t1 = {10,'c'};//1.类型 2.名 3.值 4.地址
struct Test *pt = &t1;
return 0;
}