This Domain is For Sale

What is the difference between the constants 123 and "123"?

  • 0 replies
  • 662 views
*

Offline mechanic

  • Engineer
  • *****
  • 3420
  • Gender: Male
  • Engineer
    • View Profile
    • Engineering Forum
What is the difference between the constants 123 and "123"?

Answer:

The constant 123 is the integer 123. The constant "123" is a string constant containing the characters 1, 2, and 3.