There is an error. Is it wrong to assign a value to a[i] in the following code? Or something is wrong with conditional operators?
#include #in
Use = once in your statement, since it has lower precedence over ?:. Something like:
=
?:
a[i] = a[i] > 90 ? a[i] - 32 : a[i] + 32;