why do programmers use single quotes instead of double quotes?

2 Answers

  • Pearl
    Lv 7
    1 month ago

    cause they like single quotes better

  • Anonymous
    1 month ago

    The two different kind of quotation marks have different meanings in different programming languages. For instance, in some languages, double quote marks mean "the characters inside these marks are a character string and should be terminated with an extra (null) character," while the single quote marks mean "the one character inside these is to be treated as a single byte, not a string." In different languages there may also be ways of using one or the other of these marks, followed by the letter B or X, to indicate that the characters inside the quotes should be interpreted as a binary or hexadecimal numeral.

Still have questions? Get answers by asking now.