//定义一个结构体
struct SubStatus {
int selected;
int noselected;
};
struct SubStatus fun()
{
//报错,返回值不能使用类型名
return struct SubStatus { 0, 0 };
//改法1
struct SubStatus sub = { 0 , 0 };
return sub;
//改法2
return (struct SubtStatus){ 0, 0 };
}
//定义一个二维数组
int arr[3][3] = { 1,2,3 ,4,5,6,7,8,9 };
printf("%d ", (arr+1)[1] == arr[2]); //为真
问方法和数组中()的是什么原理?