Filter
Exclude
Time range
-
Near
Shafik Yaghmour retweeted
#119 Given the following in C++20: using C=const char*; template<class T, T p> class X{}; X<C,"Hi"> x1;//A char p[]="Hi"; X<C,p> x2;//B struct A{constexpr A(C){};}; X<A,"Hi"> x3;//C W/o checking, which is invalid: A. A B. B C. C D. See results #Cplusplus #Cpppolls #Cpp20
19% A
32% B
20% C
29% D
376 votes • 2 days
7
6
106
Show this thread
Enno Boland retweeted
#118 Given the following in C and C++: struct S {int i : 1;}; int main(void) { struct S s; return sizeof(1, s.i); } Without checking is this: A. Valid C B. Valid C++ C. Valid C and C++ D. See results #Cplusplus #Cpppolls #CPolls #Programming
23% A
19% B
28% C
30% D
302 votes • Final results
4
24
92
Show this thread