0

How to print a "hello world" statement in C without using semicolon?

21st Jul 2018, 11:33 AM
Hrishi751
Hrishi751 - avatar
9 Antworten
+ 2
Heroic Timber 😂 then change main() to void if you want and remove return statement.
21st Jul 2018, 11:53 AM
Nikhil Dhama
Nikhil Dhama - avatar
21st Jul 2018, 11:47 AM
Nikhil Dhama
Nikhil Dhama - avatar
+ 1
Heroic Timber that is undefined behaviour as technically you're putting a function without a return value into an if statement but technically you're correct
21st Jul 2018, 11:47 AM
hinanawi
hinanawi - avatar
+ 1
you did use a semicolon for returning the value to 0 Nikhil Dhama 😂
21st Jul 2018, 11:51 AM
Hrishi751
Hrishi751 - avatar
+ 1
Nikhil Dhama yep gotcha! that's right
21st Jul 2018, 11:54 AM
Hrishi751
Hrishi751 - avatar
0
without a semicolon the program will not compile, so there is no way.
21st Jul 2018, 11:38 AM
hinanawi
hinanawi - avatar
0
There's more than 3 ways hinanawi
21st Jul 2018, 11:39 AM
Hrishi751
Hrishi751 - avatar
0
Heroic Timber very well, enlighten me
21st Jul 2018, 11:40 AM
hinanawi
hinanawi - avatar