I would to know if t's possible in to initialise struct on the fly for function call like in c++ :
struct point {
int x;
int y;
};
some_function(new point(x,y));
Thx :)
Yes. You can use compound literals, introduced in C99.
some_function((struct pint) {5, 10});
You can do it in C and call your function like this guy said, but you'll need to add the flag -std=c99 to your gcc invocation line, else it might failed if you're using some -W* flags.