C语言函数结构体指针参数实现按索引取数组的返回值调用
源码:#include <stdio.h>#include <string.h>struct book{ int array[6]; int num ;};int fun(struct book *q) //函数类型为double,返回值也必须是double{ int ret1; int ret2; int i; ret1 = q->num + 2020; ret2 = q-&