0
Hello world
Why most people start learning program using that word not a hello kitty or hello java?
4 Respostas
+ 8
Old tradition, see
https://en.m.wikipedia.org/wiki/%22Hello,_World!%22_program
+ 5
of course you can write anything else. greet yourself, your parents, kitty, the programming language, just write hello or hi. you can even just output “success“. but you're entering the world of programming, greet the world.
the much better question is: why do we use foo, bar and foobar for variables? well, we have to use something. a, b, c or x, y, z are also common, but they are boring and tend to get confusing in longer examples. naming them panda, dog, cat or horse would work too...
as Tashi mentioned: it's a tradition. since you'll encounter it everywhere while learning to program, you should learn to live with it.
0
This example became popular by Brian Karingham and Dennis Ritchie. They wrote a book. The title: The C Programming Language. The first edition was published in 1978. In this book was the "hello world" example. From this book became famous this short code. This book is a fundamental work for every programming learner. This is the "hello world" story.
Source: https://en.m.wikipedia.org/wiki/The_C_Programming_Language
0
Thank for information zoltan