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 Antworten
+ 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