I guess that it's because they are an array, so it's convenient for them to behave like something whose address can be taken and conversions from array to pointer can happen (for conversions to char *), which doesn't make sense for other literal types. Then again, I have no idea so I'm just guessing...
View all comments
Show parent comment
1
u/paxromana96 Jun 07 '18
Why is a string literal an lvalue?