+ 7
Explain why result is "ssl" ? Why two 's', and not one 's'?
#include <iostream> using namespace std; struct S { S() {print('s');} void print(char c) { cout<<c; } }A; int main(){ S a; a.print('l'); return 0; }
4 odpowiedzi
+ 2
UraL you just answered your one question.
+ 8
I got it. Because struct S {...} A;
A is reason
+ 6
It was insight:-)
+ 3
This question has been asked before
https://www.sololearn.com/Discuss/1759662/?ref=app