cout << a << " "<< b; need explanation and when I should use those 2 semicolons? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
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 Réponses
+ 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