123ArticleOnline Logo
Welcome to 123ArticleOnline.com!
ALL >> Computer-Programming >> View Article

Hello World

Profile Picture
By Author: Wisemonkeys
Total Articles: 277
Comment this article
Facebook ShareTwitter ShareGoogle+ ShareTwitter Share

A “Hello, World!” program is generally a computer program that ignores any input and outputs or displays a message similar to “Hello, World!”. A small piece of code in most general-purpose programming languages, this program is used to illustrate a language’s basic syntax. “Hello, World!” programs are often the first a student learns to write in a given language,[1] and they can also be used as a sanity check to ensure computer software intended to compile or run source code is correctly installed, and that its operator understands how to use it.

While small test programs have existed since the development of programmable computers, the tradition of using the phrase “Hello, World!” as a test message was influenced by an example program in the 1978 book The C Programming Language,[2] but there is no evidence that it originated there, and it is very likely it was used in BCPL beforehand (as below). The example program in that book prints “hello, world”, and was inherited from a 1974 Bell Laboratories internal memorandum by Brian Kernighan, Programming in C: A Tutorial:[3]

main( ) { printf("hello, ...
... world");}
In the above example, the main( ) function defines where the program should start executing. The function body consists of a single statement, a call to the printf function, which stands for “print formatted”. This function will cause the program to output whatever is passed to it as the parameter, in this case the string hello, world.

The C language version was preceded by Kernighan’s own 1972 A Tutorial Introduction to the Language B,[4] where the first known version of the program is found in an example used to illustrate external variables:

main( ) { extern a, b, c; putchar(a); putchar(b); putchar(c); putchar('!*n');} a 'hell';b 'o, w';c 'orld';
The program prints hello, world! on the terminal, including a newline character. The phrase is divided into multiple variables because in B a character constant is limited to four ASCII characters. The previous example in the tutorial printed hi! on the terminal, and the phrase hello, world! was introduced as a slightly longer greeting that required several character constants for its expression.

The Jargon File claims that “hello, world” originated instead with BCPL (1967).[5] This claim is supposedly supported[according to whom?] by the archived notes of the inventors of CPL, Christopher Strachey and BCPL, Martin Richards at Cambridge. The phrase predated by over a decade its usage in computing; as early as the 1950s, it was the catchphrase of New York radio disc jockey William B. Williams.[6]

At Wisemonkeys(https://wisemonkeys.info/), we are a bunch of young minds trying to develop an environment to deliver knowledge to society. From article submissions to blog writing and sharing to even question and answers. Post a question and get instant responses from experts online.

REGISTER NOW for FREE!(https://me.wisemonkeys.info/login)

Total Views: 253Word Count: 469See All articles From Author

Add Comment

Computer Programming Articles

1. Unlocking Community Gold: How Reddalyze Makes Subreddit Research & Marketing Tools Work For You
Author: Taylor

2. Top Web Development Institutes In Bhopal That Shape Future Developers
Author: Kabir Patel

3. Your Complete Bugzilla Tutorial For Managing Software Bugs Efficiently
Author: Tech Point

4. From Beginner To Expert: Ultimate Jira Tutorial For Effective Team Collaboration
Author: Tech Point

5. Top Web Development Institutes In Bhopal: Where Creativity Meets Technology
Author: Kabir Patel

6. The Ultimate Framework Showdown: Which One Will Reign Supreme
Author: Andy

7. Why Your Competitors Are Investing In Custom Software (and You Should Too)
Author: Aimbeat Insights

8. The Hidden Security Risk Of Ssh Keys: Why Manual Linux Access Management Is A Ticking Time Bomb
Author: Tushar Pansare

9. Beyond Ticketing: Using Laravel And N8n To Automate Customer Onboarding Workflows
Author: Andy

10. Top Web Development Institutes In Bhopal: Turning Ideas Into Code
Author: Kabir Patel

11. Software Testing Tutorial: Learn Manual And Automation Testing With Easy Examples
Author: Tech Point

12. Ultimate Yii Framework Tutorial For Building Powerful Php Websites
Author: Tech Point

13. Java Job Support: Real-time Assistance For Developers To Succeed
Author: RKIT Labs Team

14. Unlocking Business Growth With Predictive Analysis
Author: Sakhi Kaya

15. What Is A Distributed Environment In Software Development?
Author: Aimbeat Insights

Login To Account
Login Email:
Password:
Forgot Password?
New User?
Sign Up Newsletter
Email Address: