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
a[i]>90 ? a[i]=a[i]-32 : a[i]=a[i]+32;
is not evaluated as
a[i]>90 ? (a[i]=a[i]-32) : (a[i]=a[i]+32);
since = has lower precedence than ?:. In standard C you can't write it as above although some compilers allow it as an extension.
You could write it as the more readable (and portable)
a[i] += a[i] > 90 ? -32 : +32;