This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Constant Type

Hi All,,

I could not understand about what is meant by Type of a constant data type ?? forexample why is it needed to write a constatnt like 0x123455678L .. what does this trailing L means ??
What are the other trailers for Constants ??

Thankzz && Bye.
-Rocknmoon

Parents
  • "Thus you can avoid type casting of a constant."

    More importantly, you can avoid the default 'C' types giving you unexpected results! Remember, 'C' assumes that everyting is an int unless explicitly told otherwise!

    "why not read a book on C?"

    Quite right: this is a 'C' language issue - nothing specifically to do with Keil!

Reply
  • "Thus you can avoid type casting of a constant."

    More importantly, you can avoid the default 'C' types giving you unexpected results! Remember, 'C' assumes that everyting is an int unless explicitly told otherwise!

    "why not read a book on C?"

    Quite right: this is a 'C' language issue - nothing specifically to do with Keil!

Children