Can we print anything without using a semicolon? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can we print anything without using a semicolon?

have heard from many programmers regarding this

27th Jul 2017, 1:49 PM
Pratik Pravin Babar
Pratik Pravin Babar - avatar
2 Answers
+ 3
No, not in C# as far as I'm aware of. Though I'm not sure why you'd want this? It's like asking if you can call a function without parentheses, it's not exactly feasible.
27th Jul 2017, 3:15 PM
Cohen Creber
Cohen Creber - avatar
0
no... because a print function(in whatever case) is a logical sentence... it must be terminated to run the other statements...
27th Jul 2017, 11:14 PM
CarLoiD
CarLoiD - avatar