Hi recently I try to do something like the following:
char buf[6] = { 'a','b','c','d','e','f'};
char combination[2] = { buf[3], buf[2] };
and the C compiler gives me error "illegal constant expression"
Does anyone know why the code is wrong?
What I am trying to do is create an array...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.