cout << a << " "<< b; need explanation and when I should use those 2 semicolons? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

cout << a << " "<< b; need explanation and when I should use those 2 semicolons?

16th Feb 2017, 8:02 PM
Ahmed Neerob
Ahmed Neerob - avatar
2 ответов
+ 4
print value of a then space then value of b
16th Feb 2017, 8:03 PM
Kawaii
Kawaii - avatar
0
use the semi's to print a string. i.e. exactly what u place in between them. "print this on the screen". (The above code will output the value of a,b & "" to whatever medium you're using with i/o stream)
17th Feb 2017, 3:21 AM
Dwayne Bobbitt
Dwayne Bobbitt - avatar