0
Difference between single and double quotes?
Is there a difference between â and â ?
3 Answers
+ 3
double quotes is for representing string
single quotes is for representing character
exception in python both are the same.
+ 18
May Moorefield
In PYTHON As far as language syntax is concerned, there is no difference in single or double quoted string. Both representations can be used interchangeably
In C and in C++ single quotes identify a single character, while double quotes create a string literal. 'a' is a single a character literal, while "a" is a string literal containing an 'a' and a null terminator (that is a 2 char array).
Single quotes are used to indicate the beginning and end of a string in SQL. Double quotes generally aren't used in SQL, but that can vary from database to database.
+ 2
It varies depending on the language