Hypothetically speaking…
Hypothetically speaking…
… if you were working on a language which was in many ways similar to (and targets) C but added more expressive types, type inference, and polymorphism, how would you interpret the following line of code?
x = "foo";
The options are:
char x[] = "foo";
or
char * x = "foo";
Thoughts?
Categories: Uncategorized