Answer the question
In order to leave comments, you need to log in
How does this variable definition work?
Recently I came across an interesting definition of a variable in the C language: char c = 2["abcdf"]
To my surprise, the value 'c' was written to the variable c. Could someone explain how this works (not just a guess, I figured out how it happened myself). Namely, to explain what such a definition is called, why it works, where you can read more about such definitions or similar interesting features of the c / c ++ language
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question