Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Is a Union Member's Destructor Called
#include <iostream> #include <string> #include <vector> using namespace std; int main() { union S { string str; vector<int> vec; ~S() {} } s = { "Hello, world"s }; cout << s.str.size() << endl; }
run
|
edit
|
history
|
help
0
test
Why is vsnprintf Not Writing the Same Number of Characters as strncpy Would?
multiplie linked list numbers
ExtThes_Uniquify
base call virtual
hangman
make Derive final
Test
Sum of numbers in a series using sum formular
Catching divide-by-zero with /EHc