We are independent & ad-supported. We may earn a commission for purchases made through our links.
Advertiser Disclosure
Our website is an independent, advertising-supported platform. We provide our content free of charge to our readers, and to keep it that way, we rely on revenue generated through advertisements and affiliate partnerships. This means that when you click on certain links on our site and make a purchase, we may earn a commission. Learn more.
How We Make Money
We sustain our operations through affiliate commissions and advertising. If you click on an affiliate link and make a purchase, we may receive a commission from the merchant at no additional cost to you. We also display advertisements on our website, which help generate revenue to support our work and keep our content free for readers. Our editorial team operates independently of our advertising and affiliate partnerships to ensure that our content remains unbiased and focused on providing you with the best information and recommendations based on thorough research and honest evaluations. To remain transparent, we’ve provided a list of our current affiliate partners here.
Software

Our Promise to you

Founded in 2002, our company has been a trusted resource for readers seeking informative and engaging content. Our dedication to quality remains unwavering—and will never change. We follow a strict editorial policy, ensuring that our content is authored by highly qualified professionals and edited by subject matter experts. This guarantees that everything we publish is objective, accurate, and trustworthy.

Over the years, we've refined our approach to cover a wide range of topics, providing readers with reliable and practical advice to enhance their knowledge and skills. That's why millions of readers turn to us each year. Join us in celebrating the joy of learning, guided by standards you can trust.

What Is an Underscore?

By Lakshmi Sandhana
Updated: May 16, 2024
Views: 9,455
Share

The underscore is a special symbol that is used in computer programming languages, in file names, and in URLs on the Internet. It is mostly used instead of the space key because many formats do not accept an empty space within the variable or name. The underscore was developed as an acceptable virtual space that could be used instead. This symbol is also known as a low dash, understrike, or low line.

When programming languages evolved, there was a dilemma as to how to represent strings of characters in an understandable way without using spaces. For instance, "thisisanobject" as the name of an entity or identifier within a programming language would difficult to read and understand, especially when used repeatedly at different points. Some programming languages allowed a hyphen to be used to separate the word, such as "this-is-an-object." Unfortunately, quite a few languages treated the hyphen as a subtraction operator, and their syntax wouldn't allow it to be used as a separator.

Empty spaces couldn't be used within the identifier, and there was a real need for a symbol or character that would literally fill the gap. In the late 1960s, the underscore was included as an alphabetic character, making it easier for programmers to name objects with multiple words. This symbol is used to concatenate very large string names and to create readable variable names. Using the previous example, "this_is_an_object" would be a valid variable name accepted by many programming languages.

E-mail names, URLs on the World Wide Web, and very long file names within the computer's operating system use the underscore to separate words. File names, songs, and Word documents can be saved as "name_name_name," for instance. It can also be used to separate the words in user names, for example, when logging onto the computer. It is found on a keyboard near the top next to the zero on the same key as the hyphen. Holding down the shift key while pressing the hyphen key results in an underscore.

The underscore has a very interesting history. It was used first in typewriters to emphasize certain words by underlining them. At that time, it was the only way to express printed words with any sort of inflection. The underscore emerged as a simple and inexpensive way to underline printed words on the typewriter. It is sometimes used to create blank spaces in forms by creating a long horizontal line.

Share
EasyTechJunkie is dedicated to providing accurate and trustworthy information. We carefully select reputable sources and employ a rigorous fact-checking process to maintain the highest standards. To learn more about our commitment to accuracy, read our editorial process.
Discussion Comments
Share
https://www.easytechjunkie.com/what-is-an-underscore.htm
Copy this link
EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.

EasyTechJunkie, in your inbox

Our latest articles, guides, and more, delivered daily.