wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Hello World

profile
Ronak Gala
Sep 14, 2022
1 Like
0 Discussions
301 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

Four Stalls Every Vegetarian Needs To Eat At Outside Vile Parle Station

Blog banner

The New Classic: Indo Western Patola Outfits for Today’s Woman

Blog banner

Evolution of Operating System

Blog banner

Human factor, a critical weak point in the information security of an organization’s IOT

Blog banner

38_Network Sniffing Techniques_SBC

Blog banner

Improving the Accuracy of GPS and GNSS

Blog banner

The Role of Cyber Forensics in Addressing Cyber security Challenges in Smart Cities

Blog banner

How to invest in Indian Stock Market ? ~ Tutorial 1

Blog banner

Virtual memory

Blog banner

Is Social Media Marketing The Next Wave Of Digital Marketing?

Blog banner

Cache memory

Blog banner

What is 'Multi-core and Multi-threading' ?

Blog banner

IoT Architecture Based Security

Blog banner

Travel: Everything Everywhere!

Blog banner

Zomato's Secret Digital Marketing Techniques!

Blog banner

What is HTML?

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

A-B-C of Networking: Part-1 (Basics)

Blog banner

Exploring the Power of Encase Forensic Tools: Unraveling Digital Mysteries

Blog banner

Classification Algorithms (Decision trees, SVM, Logistic regreession)

Blog banner

IT Service Continuity Management

Blog banner

Denial-of-Service and Distributed Denial-of-Service Attack Techniques

Blog banner

?What Your Dentist Notices The Moment You Sit In The Chair

Blog banner

"The Benefits of Using GIS in Agriculture"

Blog banner

E-learning

Blog banner

Blockchain uses and use cases

Blog banner

Social Engineering Deceptions and Defenses

Blog banner

"Life as a Part-time Student"

Blog banner

How to use GIT & GITHUB

Blog banner

R Programming

Blog banner

MODERN OPERATING SYSTEM

Blog banner

Utilizing Data-Hiding and Retrieval Techniques in Cyber Forensics

Blog banner

Importance Of Blockchain

Blog banner

Characteristics of Etherum

Blog banner

Service transition principles

Blog banner

HTML vs HTML5

Blog banner

MYNTRA

Blog banner

Importance of Network Security Risk

Blog banner

Interrupts

Blog banner

Fault Tolerance

Blog banner

On-Page SEO

Blog banner

CRISP-DM Methodology

Blog banner