#include <stdio.h> void f(double (*)[3]); double a = 7.5; int main() { double* b = &a; f(&b); return 0; } void f(double (*hi)[3]) { double **sth = (double **) hi;\ *(*sth) = 1; }
Standard input is empty
prog.c: In function 'main': prog.c:8:6: error: passing argument 1 of 'f' from incompatible pointer type [-Werror=incompatible-pointer-types] f(&b); ^ prog.c:2:6: note: expected 'double (*)[3]' but argument is of type 'double **' void f(double (*)[3]); ^ cc1: all warnings being treated as errors
Standard output is empty