0

Why use endl in c++?

26th Oct 2016, 2:19 PM
Ankit Vishwakarma
Ankit Vishwakarma - avatar
3 ответов
+ 1
endl is used for next line. cout<<endl; will work like printf("/n") statement of c.
26th Oct 2016, 2:25 PM
kevin patel
kevin patel - avatar
+ 1
(@kevin: It's "\n", not "/n".)
26th Oct 2016, 2:49 PM
Zen
Zen - avatar
0
you can use "\n" or endl.
26th Oct 2016, 2:59 PM
Carlos Alexander Chirito Romero
Carlos Alexander Chirito Romero - avatar