Case sensitivity

Probably something of a trivial question for those who know:

Can anyone out there confirm for me whether ANSI C is meant to be a
case sensitive, or insensitive languge; and whether the Keil compiler
complies with this.


Yours gratefully,


Richard Roebuck.
P.S. Am I the only one who finds that the tick box to send 'an e-mail
message when someone posts to this thread' option doesn't work?
Do I need to set a specific option on the browser to enable this?

Parents
  • 'C' is mose definitely a case-sensitive language.

    BUT many linkers are not.
    In Keil's case, the Linker converts everything to UPPERCASE, and then uses that - thus it is insensitive to the original case of identifiers in your source files (there might be an option to control this? - check the manual)

    The upshot is that you can define a variable 'i' in one C file, and reference an extern I in another, and the Linker will consider them to be the same object - thus giving you the impression that C is not being case-sensitive!

    "Am I the only one who finds that the tick box to send 'an e-mail message when someone posts to this thread' option doesn't work?"

    Well, it used to not work, then they fixed it (and added the bit in red about "... you will receive an e-mail...") but I've heard recently that it's gone downhill again.
    Dunno if it's actually not working, or just that it takes ages (like weeks!) to get around to sending the message! :-0

Reply
  • 'C' is mose definitely a case-sensitive language.

    BUT many linkers are not.
    In Keil's case, the Linker converts everything to UPPERCASE, and then uses that - thus it is insensitive to the original case of identifiers in your source files (there might be an option to control this? - check the manual)

    The upshot is that you can define a variable 'i' in one C file, and reference an extern I in another, and the Linker will consider them to be the same object - thus giving you the impression that C is not being case-sensitive!

    "Am I the only one who finds that the tick box to send 'an e-mail message when someone posts to this thread' option doesn't work?"

    Well, it used to not work, then they fixed it (and added the bit in red about "... you will receive an e-mail...") but I've heard recently that it's gone downhill again.
    Dunno if it's actually not working, or just that it takes ages (like weeks!) to get around to sending the message! :-0

Children
More questions in this forum