of values to a function without creating an array before?
I'd like to do something like
my_function((1,2,3), 4, 5)
And then do stuff with the (1,2,3) array. For now i'm doing that by creating an array and then passing it to the function, so it looks like:
int myarray[] = {1,2,3};
my_function(myarray, 4,5);
however this is pretty annoying and I'd like to change that. I tried lots of things but i can't get anything out of it
yes you can
Обсуждают сегодня