I have a function, f(char **p), and I wanted to call it in the simplest way I could.
I tried
char ** p = {"a", "b"};
f(p);
and got:
scalar object requires one element in initializer
so I changed it into
char * p[2] = {"a", "b"};
f(p);
and that went fine [would have been also fine with just char * p[]].
Why can't I create an array of pointers on the fly like the following?
f({"a", "b"});