我觉得是unspecified behavior, evaluation order of LHS and RHS is unspecified. f()的"return i-1"之后有一个sequence point, 所以不存在两个 sequence points之间存在多个writes的问题。 这里我认为是正确的 不过这个程序里,存在一个undefined behavior, main函数必须return一个int,否则 是UB.
【在 q****m 的大作中提到】 : int f() : { : static int i = 0; : i++; : return i - 1; : } : int main() : { : int a[4] = {4, 3, 2, 1}; : a[f()] = a[f()] + 10; // undefined ?
【在 l*******r 的大作中提到】 : I know flipping can make more profit than buy-and-hold. : the question how do you get the house in bad shape and a good rehab team? : : 出手
【在 l*******r 的大作中提到】 : I look at the return of flipping fund and buy and hold fund. in general, : fipping fund makes more.
t*h
19 楼
哦,所以你是rental和flipping都做?
【在 l*******r 的大作中提到】 : I look at the return of flipping fund and buy and hold fund. in general, : fipping fund makes more.
l*r
20 楼
I did one flip and rented out. I checked the return of the private funds, which is higher than rental. There is one deal that I missed. ARV is $170k, asking $100k. Spend $30k and make $40k. That is not possible for rental to make this kind of return.
【在 l*******r 的大作中提到】 : I did one flip and rented out. : I checked the return of the private funds, which is higher than rental. : There is one deal that I missed. ARV is $170k, asking $100k. Spend $30k and : make $40k. That is not possible for rental to make this kind of return.
l*r
22 楼
是阿,少了tax shelter还是挺可惜的。我也意识到了,正准备买个投资房。 你也知道一个是passive invome, one is active income其实不需要比,两者可同时做。