Is it same?

mike stump mrs@windriver.com
Mon Jun 17 12:03:00 GMT 2002


> From: "Maggie Mitchell" <maggie_shh@hotmail.com>
> To: gcc@gnu.org
> Date: Mon, 17 Jun 2002 03:22:02 +0000

> class A {
> ...
> };

> int main()
> {
> A a;//Is it same as "A a();"???
> }

This question can be answered by compiling with -S for each one, and
seeing if you get the exact same assembly code.  If you do, they must
be (in this context).  If you don't then you can examine the
differences in the assembly to see if they relate to semantics.

FYI, this list is the wrong place to learn any programming language.



More information about the Gcc mailing list