struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/11 21:25:02
![struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,](/uploads/image/z/12725307-27-7.jpg?t=struct+student%7Bint+num%2Cint+score%7Dstu%3B+struct+student+%2Ap%3Bstu+%2Asp%E5%92%8Cs%E8%BF%99%E4%B8%A4%E4%B8%AA%E6%8C%87%E9%92%88%E6%9C%89%E4%BB%80%E4%B9%88%E5%8C%BA%E5%88%AB%2C%E5%88%86%E5%88%AB%E6%9C%89%E4%BB%80%E4%B9%88%E4%B8%8D%E5%90%8C%E7%9A%84%E7%94%A8%E6%B3%95%21%E8%AF%B7%E4%B8%BE%E4%BE%8B%E8%AF%B4%E6%98%8E%2C)
x͑N@_ޒF>BM6\CB+p).@D
.fδ$3?ߜQҙƩZ&%Άqrff5XIp).$pTj6"^ZEV3I|
F`ty0
8}䃃;x/ěI)tSᅵtVӈ?P|+_4;+ە/`%ڶ"u:Y+T;q'봙'(4KH@aj[hsѦ<
k켉XZL#'rXjY
1qN,ndؔigàg"o
!*};Ɓ
struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,
struct student{int num,int score}stu; struct student *p;stu *s
p和s这两个指针有什么区别,分别有什么不同的用法!
请举例说明,
struct student{int num,int score}stu; struct student *p;stu *sp和s这两个指针有什么区别,分别有什么不同的用法!请举例说明,
有问题吧?struct student{前没有typedef,所以}后的stu只是个结构体student型的变量而不是它的别名,所以stu *s是非法的,因此其他都谈不上了.若struct student{前有typedef,则stu就是student的别名,那么p和s就是对等的了……