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
  • EVERY operand in an expression has a type. Since constants are always used as parts of expressions, they must have a type. Suffixes like U, L, F specify the type of the constant which can be different from that without suffix. Thus you can avoid type casting of a constant.
    Actually, why not read a book on C?
    - Mike

Reply
  • EVERY operand in an expression has a type. Since constants are always used as parts of expressions, they must have a type. Suffixes like U, L, F specify the type of the constant which can be different from that without suffix. Thus you can avoid type casting of a constant.
    Actually, why not read a book on C?
    - Mike

Children
More questions in this forum