Saturday, May 22, 2010

Is C++ case sensitive or Case sensitivity is compiler-determined?

C++ is always case sensitive on all compiler

Is C++ case sensitive or Case sensitivity is compiler-determined?
Ye.





C,C++,Java are case sensetive.





A variable declared as EmpName is diffrent then empname and EMPNAME in C,C++,Java








It is not dependent on compiler it is by design.
Reply:Yes, C++ is case sensitive (and C as well)... so make sure you pay attention to your caps. If your compiler ignores case, then I suggest you get a different compiler because the one you have must be junk.
Reply:good question,





I think C++ is case sensitive, unless you have some really random complier that will compile some odly written code.
Reply:Case sensitivity is in the C++ standard (C as well). If a compiler is not case sensitive, then it does not conform to the standard, simple as that.


No comments:

Post a Comment