I have 2 parts to this question.
1: If I want to pass a const int array to a function, normally I would do so.
const int array[3] = {1,2,3};
somefunction(array,3);
But I want to do it in a simpler way like you can do with strings is this possible.
somefunction("abc",3);
To something like somefunction({1,2,3},3);
I know this doesn't work but is there a syntactically correct way to do this.
2: If the previous question is possible then this one is answered. Is there a way to mix ascii values in a const string. like...
somefunction({1,2,3,"test"},7);
I know this doesn't work but is there a syntactically correct way to do this.