hat is the difference between
C Interview Questions and Answers
(Continued from previous question...)
hat is the difference between
Q: What's the difference between
const MAXSIZE = 100;
and
#define MAXSIZE 100
A: A preprocessor #define gives you a true compile-time constant. In C, const gives you a run-time object which you're not supposed to try to modify; ``const'' really means ``readonly''.
(Continued on next question...)
Other Interview Questions
|