Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Fucking pointers

Name: Anonymous 2013-06-27 18:20

I want to declare a const pointer that points to a list of const pointers that point to const data. Throw me a fucking bone.

Name: Anonymous 2013-06-28 19:46

>>17 and >>18 are both wrong. The * used in declaring a pointer type is part of the syntax. It is not the * unary operator:

6.7.5 Declarators

Syntax

    declarator:
        pointeropt direct-declarator

    direct-declarator:
        identifier
        ( declarator )
        direct-declarator [ type-qualifier-listopt assignment-expressionopt ]
        direct-declarator [ static type-qualifier-listopt assignment-expression ]
        direct-declarator [ type-qualifier-list static assignment-expression ]
        direct-declarator [ type-qualifier-listopt * ]

    ...


(But it obviously isn't a binary operator either. Really, >>17 is wronger here.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List