Image

Imagekenshinhimura wrote in Imagecpp

Listens: weezer - hottub

variable initialization

I have a rather simple c++ syntax brain teaser

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.