wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Hello World

profile
Ronak Gala
Sep 14, 2022
1 Like
0 Discussions
304 Reads

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]


Comments ()


Sign in

Read Next

Is it important to follow all the trends that come up on social media?

Blog banner

Financial Stress and Mental Health

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

Creating Digitally Signed Document

Blog banner

"Audit" In Data Science

Blog banner

Fitness regime by Deepesh

Blog banner

Deadlock

Blog banner

Types of Threads

Blog banner

Who decides your overthinking, anyway?

Blog banner

RAID - LEVELS OF RAID

Blog banner

Deadlock and Starvation

Blog banner

Junk food vs healthy food

Blog banner

Computer Security

Blog banner

Internet: The Vast Ocean Of Knowledge.

Blog banner

Top 3 Places To Stay In Vienna

Blog banner

Threads

Blog banner

Women empowerment

Blog banner

Why Are So Many Adults Getting Diagnosed with ADHD?

Blog banner

From Canoeing to Camping: The Perfect Nature Escape Near Arcadia

Blog banner

How To Secure Operating Systems ?

Blog banner

The Role of Frontline Managers in Driving Workplace Performance and Customer Satisfaction

Blog banner

Chicken Dum Biryani

Blog banner

Im Photographer

Blog banner

OS PROCESS DESCRIPTION AND CONTROL-SARVAGYA JALAN

Blog banner

Latest Email Marketing Techniques

Blog banner

What is M-commerce and how it's work

Blog banner

Virtual Memory

Blog banner

Excel records

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

My First Trek - Sondai, Karjat - Shoaib Malik

Blog banner

E-mail security

Blog banner

Little Habits, Big Impact: Daily Preschool Routines That Shape the Future

Blog banner

What is thread and alse multithreading

Blog banner

Loneliness

Blog banner

DIGITAL ECONOMY

Blog banner

Deming’s Process

Blog banner

Bit Coins

Blog banner

You Get Everyone, But No One Gets You: The Lonely Side of High Emotional Intelligence

Blog banner

Risk mitigation and management

Blog banner

The Best Photography Spots in and Around Arcadia, Florida

Blog banner

Decoding Confusion Matrix

Blog banner

How to write a cover letter

Blog banner