+ 1
42 is string?
8 Respuestas
+ 5
42 is integer but if you write a number inside double quotes - "42" then it is a String.
+ 3
No. 42 is a number. But "42" or '42' is a string.
+ 2
If you find any number or character in single quotes ('_') or in bouble quotes ("_") that's a string. Keep in mind.
+ 1
Tushar Kumar
What is 1 2 3 4 5 6 7 8 9 10?
+ 1
'42' is a string.
0
"42" could also be one
Can you at least, let us know which language you are referring to python or sql etc.
It might help to paste your code here
0
For a number to be a string, it must be in quotes.
So 42 is not a string but "42" or '42' are strings