Retro C++ quiz #57

Given the following in C++:

#include <cstdint>
#include <limits>

int main() {
int64_t s=32;
int64_t x=std::numeric_limits<int32_t>::max();

1 << s; // A
1 + x; // B
}

Without checking, assuming LP64, which invokes undefined behavior:

A. Both
B. None
C. A
D. B

#Cplusplus
#Cpppolls

A
36.4%
B
27.3%
C
31.8%
D
4.5%
Poll ended at .
@shafik I almost voted A but then I realized that A is not A ;)
@malwareminigun @shafik I voted A for that reason. What a trap!

@kamikaze @malwareminigun

I think @zygoloid dinged me for this trap the first time I posted it 😱

@shafik I said the trap was both beautiful and horrible. And I stand by that. :)

https://www.youtube.com/watch?v=vHfNCJyMfKE

Who Wants To Be A Millionaire Funny-First Letter in the English Alphabet.

YouTube