+ 1

I have question for you.

If I have string "I have 3 apples." What kind of type is number 3. Is it integer, character or string?

7th Mar 2021, 6:39 AM
TeaserCode
2 Answers
+ 4
TeaserCode It will be consider as character as String is a sequence of characters.
7th Mar 2021, 6:42 AM
A͢J
A͢J - avatar
+ 2
If you want to use it in a calculation, you will have to access the character and convert it into an integer.
7th Mar 2021, 10:39 AM
Sonic
Sonic - avatar