variable initialization
I have a rather simple c++ syntax brain teaser
Given a class:
and a function:
Are 1 & 2 similar or not? Explain.
Oh and hello to everybody, new guy here.
Given a class:
class Foo {
public:
Foo();
};and a function:
int main() {
Foo a; // 1
Foo a(); // 2
// ...
}Are 1 & 2 similar or not? Explain.
Oh and hello to everybody, new guy here.
