[Solved] Why isn’t there a “


--> is not one operator, it is two; (post) decrement and less than. C is whitespace agnostic for the most part, so:

x --> y
/* is the same as */
x-- > y

<-- is the same idea:

x <-- y
/* is the same as */
x < --y

Perhaps you are confusing -> with -->. -> dereferences a pointer to get at a member of the type it refers to.

typedef struct
{
    int x;
} foo;

int main(void)
{
    foo f = {1};
    foo *fp = &f;
    printf("%d", fp->x);
    return 0;
}

<- is simply not an operator at all.

1

solved Why isn’t there a “<--" operator? [duplicate]