Maggick
Maggick

Reputation: 793

Double pointer difference when using with array

Is there a difference between the following two lines and if so what is it? (in C++)

float (**a[10]);
float *(*a[10]);

Upvotes: 3

Views: 69

Answers (1)

AlexD
AlexD

Reputation: 32576

No. Try

float (**a[10]);
float *(*b[10]);
if (typeid(a) == typeid(b))
    printf("==\n");
else
    printf("!=\n");

The output is

==

Upvotes: 7

Related Questions