Image

Imageserge_sb wrote in Imagecpp

Passing an array of constants to function

Assume we have a function CheckSomething(BYTE baParams[]). Then we can call it like this:

BYTE baMyParams[] = {0x21,0x35};
CheckSomething(baMyParams);

Question is: how to pass an array of values without using extra variables? Something like CheckSomething({0x21,0x35})? - this doesn't work:(