Difference between a backslash and a forward slash

The backslash and the forward slash are the two terms, i think most of the times used incorrectly in computing. That’s why i thought to share this and clarify the difference.

Sometimes even an IT expert get confused when come across these terms. So how to remember what is the forward slash and what is backslash?

The difference between a backslash and a forward slash is defined below:

Backslash: \

Forward Slash: /

TIP: A good way to remember the difference between a backslash and a forward slash is that a backslash leans backwards ( \ ), while a forward slash leans forward ( / ).

The term “backslash” is on of the most incorrectly used terms in computing. People often refer to forward slashes as backslashes, especially when referring to URLs. Web addresses (URLs), such as http://programmingbaba.com/contact-us/, contain forward slashes, rather than backslashes.

In Windows, backslashes are used to separate directories in file paths (ex: C:\Program Files\Common Files\microsoft shared\). On Mac and Unix systems, forward slashes are used for the same purpose (ex: /System/Library/Screen Savers).

Note: Forward slashes can also be called simply “slashes,” since they are much more commonly used than backslashes.

Sana Beginner Programmer Asked on March 26, 2014 in General Question.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.