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

  • 0 replies
  • 266 views
*

Offline mechanic

  • Engineer
  • *****
  • 3310
  • 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.