how to convert wchar_t* type variable to wchar_t[ ] type array? [closed]

I think wchar_t[] is the same meaning as wchar_t*

function:

int Func(wchar_t var[]);

coding:

wchar_t* yourvariable = L"wide char string";
int ret = Func(yourvariable);

Is that bad?

Leave a Comment