- 1
Why we always print "hello world " in the beginning of every program?
5 Respostas
+ 3
It's nothing necessary to print only hello world. You can print whatever you want. It's just a legacy or a trend.
Not all of us use hello world. For example: Rellot's screwdriver
+ 1
man, I just typed rubbish in one cout and expect to get the output and it did when I first started
+ 1
You may also write "Goodbye World" instead!
+ 1
Pravin Ghartimagar
It's a sign that you are going to start to learn new thing. It is like new born baby say "Hello World" welcome me.
+ 1
the first thing to learn (and to practice) in programming with a new language is to print/output something on screen (to be able to show/see effect of all other languages features)...
printing "hello world" is kind of design pattern of this first task/example: it may be any word/sentence else... that's the model commonly used from decades, and will probably continue until end of times ;P
however, you just started learned C course, where there was no practices nor end of module project added... but anyway, if you go through most of other courses here, you will see that the first task to do is always to print something, but that the sentence to output vary depending on languages ;)