wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Hello World

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

Cyber Forensics

Blog banner

BIRYANI ! The history you never knew about

Blog banner

OPERATING SYSTEM OBJECTIVES AND FUNCTIONS

Blog banner

What if COVID does not exist!

Blog banner

Loneliness

Blog banner

Threads in OS

Blog banner

Which Smartphone Company Has the Largest Market Share in India?

Blog banner

gis substation

Blog banner

Race Condition in Operating Theatre

Blog banner

Subnet Masking

Blog banner

The Evolution of the Microprocessor ~ Aditya Pai

Blog banner

Technical Challenges and Directions for Digital Forensics

Blog banner

Processes : Process description and control

Blog banner

Benefits of yoga and meditation

Blog banner

Memory Hierarchy

Blog banner

I/O Management and Disk Scheduling

Blog banner

Direct Memory Access

Blog banner

GEOLOGY AND GEO-TECTONIC FRAME WORK OF WESTERN BASTAR CRATON

Blog banner

Cyber Bullying - Neeta Vonkamuti

Blog banner

Why Soft Skills Matter as Much as Grades?

Blog banner

EMAIL INVESTIGATION

Blog banner

Procedure For Corporate High-Tech Investigations

Blog banner

Question

Blog banner

Stay Close To Adventure In Arcadia, Florida At Oak Tree Hotel

Blog banner

DATA WRANGLING

Blog banner

How to Manage Business Invoices and Payments Easily?

Blog banner

Memory Management

Blog banner

Vulnerability Assessment (Vulnerability Analysis)

Blog banner

Different types of scam Fraud

Blog banner

All you need to know about Website Traffic

Blog banner

Biometric Authentication and Privacy: Balancing Ethical Concerns

Blog banner

Process State

Blog banner

E-learning in today's world

Blog banner

Water Resources are about to exhaust...

Blog banner

Predictive Analytics: How Data Science Predicts Trends(Weather ,Stock Market,Sales Forecasting ).

Blog banner

Importance Of Time

Blog banner

Technical SEO : Total Guide

Blog banner

TRELLO

Blog banner

Defining youtubr

Blog banner

Top 5 Post-Wedding Skin Care Tips

Blog banner

Career v/s Job : Choose your passion

Blog banner

The 60-Minute Window: What to Do (And What NOT to Do) When You Knock Out a Tooth

Blog banner