1

From my understanding, inline and extern variables both do similar things, with the difference being that with extern, the variable has to be defined somewhere else. I've noticed that I only get warnings and not errors when I do something like extern int i = 10; and don't define it anywhere else.
Are there any other differences between inline and extern? Why don't I get errors when I assign a value to an extern variable and not define it anywhere else?

0 Answers0