Is there a way to define a temporary variable for use as a function argument when calling a function? There is a function:
int hello(const int *p);
call it with
int a = 10;
hello(&a);
but the the var a won't be used after that, so I want them in one line, something like this:
hello(&(int a = 10)); // can't compile
hello(&int(10)); // can't compile
What is the right form to express this?