Hi Readers!
In swift 2.0, print() statement adds a new line character automatically, where as in swift 1.2, println() and print() were 2 separate functions.
Apple in 2.0 has given only 1 statement for print() with different parameters.
To print it in same line you can use below statement:
print("Hi", terminator:"")
print(" there")
The above 2 statement will bring the "Hi there" in one line.
0 Comment(s)