Character Datatype in Kotlin
Kotlin represents Character using Char.char should be represented as single quote like 'c'
Example Program :
Example Program :
/* arula.in */
fun main(args : Array<String>)
{
/* basic data Types in Characters */
var simplechar : Char /* Defining Variable */
simplechar = 'A' /* Assigning value */
println("Char value is :"+ "$simplechar")
}
No comments