i think that i don't have to add ! after each cout statement , do u think so ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

i think that i don't have to add ! after each cout statement , do u think so ?

12th Jun 2016, 1:16 PM
Deyaa El_deen Hazem Sabry
Deyaa El_deen Hazem Sabry - avatar
11 Answers
+ 2
it is necessary end every statement with ; but ! is not necessary 😊😊😊😊😊
13th Jun 2016, 5:02 PM
DJ Shiva & DJ Baba Shiv-Shekhar
DJ Shiva & DJ Baba Shiv-Shekhar - avatar
+ 2
yeh, it's not necessary (!), just ( ; ) use.
17th Jun 2016, 3:35 PM
Igor Shaturnyi (ishPLC)
Igor Shaturnyi (ishPLC) - avatar
+ 1
no its not neceesary to add exclamation marks after each statement but u need to add semicolon(;) after end of each statement otherwise compiler will ignore it and it will be shown a termination error on the display screen
12th Jun 2016, 1:19 PM
Srijan Gupta
Srijan Gupta - avatar
+ 1
Yes " ; " is needed. " ! " is not needed
12th Jun 2016, 3:16 PM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 1
yes semicolon is necessary because without it comiler doesn't understand your condition and show error
13th Jun 2016, 9:02 AM
Iman Ali
Iman Ali - avatar
0
No absolutely not. It's not necessary at all. But the semicilon ; must be used to end every logical statement that you write . It's called TERMINATOR
14th Jun 2016, 4:23 AM
MAZHAR IMAM KHAN
MAZHAR IMAM KHAN - avatar
0
; it is very necessary but ! is not, u can try the hello world program without !, to be assured!😃
14th Jun 2016, 6:01 AM
Vivek Sharma
Vivek Sharma - avatar
0
! is not necessary but ; is essential
15th Jun 2016, 3:53 AM
p@w@n
p@w@n - avatar
0
; is necessary at the end of every statement
18th Jun 2016, 9:49 AM
Purnima Jaiswal
Purnima Jaiswal - avatar
0
The! is not needed. in fact if you add it after writing a statement and u run it,u will get an error. example. cout<<"Hello";!
20th Jun 2016, 11:36 AM
Issah Mudasir
Issah Mudasir - avatar
0
; is a must at the end of statements ! optional
21st Jun 2016, 10:39 AM
Anon Anon
Anon Anon - avatar