Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

In C, what is the difference between "6" and '6'?

In C, what is the difference between "6" and '6'?

1 Answer

Relevance
  • Anonymous
    10 years ago
    Favorite Answer

    "6" is a string/character array (it has a null terminator). It is equivalent to '6'+'\0' or "6\0"

    '6' is a single character

Still have questions? Get your answers by asking now.