Can I declare a local array of a size matching a passed-in array?
C Interview Questions and Answers
(Continued from previous question...)
Can I declare a local array of a size matching a passed-in array?
Q: Can I declare a local array (or parameter array) of a size matching a passed-in array, or set by another parameter?
Historically, you couldn't, but in C99 (and in some pre-C99 compilers with extensions) you can.
A:
(Continued on next question...)
Other Interview Questions
|