When function arguments are of the same type, is following code well-defined and portable?
void foo(int* p, int size);
void pass_on_args_by_pointer(int a, int b, int c)
{
foo(&a, 3);
}
To clearify: the 'size' argument should contain the number of elements in the array p. So, I want to pass all three ints to foo.
footo be able to accessbandcsomehow? If so, no.