I know that C ++ does not indicate the order in which parameters are passed to the function. But if we write the following code:
void __cdecl func(int a, int b, int c)
{
printf("%d,%d,%d", a,b,c);
}
int main()
{
int i=10;
func(++i, i, ++i);
}
Can we reliably say that there will be a solution 12,11,11, since __ cdecl guarantees that the order of passing arguments is right?
Pointer
source
share