well, Jow Forums?
Well, Jow Forums?
Other urls found in this thread:
en.cppreference.com
en.cppreference.com
twitter.com
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
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) ?
You're not thinking with pointers.
>en.cppreference.com
>1-2) The smaller of a and b. If the values are equivalent, returns a.
>en.cppreference.com
>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