We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Dear all,
in my program i declared some variable as constant. After compilation this program gives me some problem related to above declare variable.
Moment i remove constant from those variable my program start working correctly.
I am inital stage of debugging. Please suggest area where i need to see to solve problem.
Regards..
Yogesh
The term "variable" is not really a 'C' thing - it is not mentioned in the 'C' standard - the term used is "identifier"
This avoids the contradictory term "constant variable".
No, an identifier is not the same thing as a variable, since an identifier is a superset that includes functions, data types etc.
"an identifier is not the same thing as a variable"
True; it would need to be specifically a data identifier - but 'C' still doesn't officially use the term "variable", as in some other languages (eg, BASIC).