Declaring varibale name in paren

Discussion in 'C++' started by Josuan, Jun 2, 2008.

  1. Josuan

    Josuan Guest

    It seems that a variable can be declared with parenthesis. For example:

    int main() {
    int (x);
    x = 5;
    }

    In this case it is useless. But is there any circumstances where
    parenthesis are really needed ? if not why allow this ?

    Thanks you in advance.
     
    Josuan, Jun 2, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Curts
    Replies:
    1
    Views:
    340
    Lee Fesperman
    Aug 21, 2003
  2. C. J. Clegg

    Whitespace before opening paren in function call?

    C. J. Clegg, Mar 7, 2009, in forum: C Programming
    Replies:
    2
    Views:
    540
    Kaz Kylheku
    Mar 7, 2009
  3. balanced paren regex's

    , Jun 17, 2006, in forum: Perl Misc
    Replies:
    9
    Views:
    151
    Xicheng Jia
    Jun 18, 2006
  4. set enviorment varibale

    , Aug 20, 2007, in forum: Perl Misc
    Replies:
    4
    Views:
    96
    Gunnar Hjalmarsson
    Aug 20, 2007
  5. iporter
    Replies:
    4
    Views:
    194
Loading...

Share This Page