What's the difference? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

What's the difference?

I just began learning the basics, and I'm confused about whether the distance of the semicolon after end matters. (Example, endl; or endl ;.)

21st Aug 2017, 6:59 PM
Darcey Irakoze
Darcey Irakoze - avatar
1 Réponse
+ 2
No, it doesn't matters. Extra spaces are ignored in c++ unless they are used inside a string.
27th Apr 2019, 11:18 AM
Avinash Avi
Avinash Avi - avatar