wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Hello World

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

Vulnerability Assessment

Blog banner

QUANTUM COMPUTING IN SECURITY:A GAME CHANGER IN DIGITAL WORLD

Blog banner

DIGITAL ECONOMY

Blog banner

Top 10 Logos and their meanings

Blog banner

Deadlock in operating system

Blog banner

Mariana Trench: The deepest depths

Blog banner

Deadlock in operating system

Blog banner

Threat from Inside: Educating the Employees Against Cyber Threats

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

Practical Implementation of Client Server model using TCP/IP.

Blog banner

Mumbai

Blog banner

My First Dream Bike

Blog banner

Mobile Security

Blog banner

Current Trends in GIS and Remote Sensing(Ocean Applications)

Blog banner

Craziness of dream 11 and how it impacts on our life

Blog banner

Assignment 2

Blog banner

Evolution of Operating Sytems

Blog banner

NETWORK SECURITY RISKS

Blog banner

GOOGLE

Blog banner

Security issues

Blog banner

The Art of Slow Fashion: Why Patola Defines Sustainable Luxury

Blog banner

Instagram Features in 2023 That Will Leave You Stunned!

Blog banner

Process Creation

Blog banner

Nature’s Brush on Silk: The Secret Behind Patola Colours

Blog banner

“CONSISTENCY” in Social Media Marketing

Blog banner

Service transistion under difficult conditions

Blog banner

Real Time Scheduling

Blog banner

Modern operating systems (OS)

Blog banner

Marvel Cinematic Universe

Blog banner

Life of a 2020-2021 student

Blog banner

Virtual Memory

Blog banner

How To Implement Search Engine Marketing (Sem) Strategy Effectively

Blog banner

Celebrate Diwali the Delicious Way with Meal Maharaj Catering

Blog banner

File Management

Blog banner

PROCESS STATE:

Blog banner

DATA SCIENCE IN BUSINESS AND MARKETING

Blog banner

File System

Blog banner

Dekkers Algorithm

Blog banner

Data-Driven Prediction of Virtual Item Prices in Online Games

Blog banner

virtual machine

Blog banner

EVOLUTION OF THE MIRCOPROCESSOR

Blog banner

Pandas Matrix Applications

Blog banner