0
What is the difference of âCharacterâ in Swift and âcharâ in C/C++?
Sometimes we need to get the ascii value of a âcharâ, but in Swift, a âCharacterâ means an Unicode. What is the difference between them? And has some particular tech or method to treat and handle âCharacterâ in Swift?
2 Answers
+ 1
Character is a data type in Swift
in Java Character is class which can have different methods.
char is also data type which holds a single character.
+ 1
character and char both are data types
character -> swift
char -> C++
ASCII = American standard code information interchange