Well, Jow Forums?

well, Jow Forums?

Attached: 1542326733286.png (471x785, 72K)

Other urls found in this thread:

en.cppreference.com/w/cpp/algorithm/min
en.cppreference.com/w/cpp/algorithm/max
twitter.com/SFWRedditImages

1111 I think

this dick LMAO

ints are copy types, so it should be 1010 unless std::max is doing some absolutely retarded fuckery

I was right

Attached: Screen Shot 2018-11-15 at 17.19.15.png (570x413, 40K)

1111 because min(a,b) amd max(a,b) both return a on equivalent, by standard.
lq bait, but made me reply

is it cause it's referencing the address of x for both min and max, since x and y are equal at time of std::max evaluation so it just takes the x address. and then sets x to 11 so when you reference in in printf you get effectively printf("%d%d",x,x) ?

Attached: 1534471277430.png (331x331, 76K)

You're not thinking with pointers.

>en.cppreference.com/w/cpp/algorithm/min
>1-2) The smaller of a and b. If the values are equivalent, returns a.
>en.cppreference.com/w/cpp/algorithm/max
>1-2) The greater of a and b. If they are equivalent, returns a.

it's so hard to read a sentence

yup, that's exactly what's going on