@shafik@hachyderm.io (@shafikyaghmour) 's Twitter Profile
@[email protected]

@shafikyaghmour

Compiler Engineer clang front end. Interests: C++, C, and undefined behavior. Martial Artist, Book Worm and Dad. @[email protected] he/him

ID: 85827090

linkhttps://linktr.ee/syaghmour calendar_today28-10-2009 14:19:02

23,23K Tweet

8,8K Followers

876 Following

@shafik@hachyderm.io (@shafikyaghmour) 's Twitter Profile Photo

#227 Given the following in C++: int g(int &) {return 1;} int g(const int &) {return 2;} int main() { return [x=1]{ decltype(x) y; auto &z = x; return g(y) + g(z); }(); } Without checking, main returns: A. 2 B. 3 C. 4 D. Show results #Cplusplus #Cpppolls