What is the use of backslash and slash in C language? - ProProfs Discuss
Advertisement

What is the use of backslash and slash in C language?

Asked by G. Horace, Last updated: Apr 01, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

A. Daniels

A. Daniels

A. Daniels
A. Daniels, Professor, San Diego

Answered Aug 06, 2018

In C computer programming language, the backslash (leans backwards) means that the character following the backslash needs to be treated a special way. For example, a means alarm or beep, or v means vertical tab. It’s interesting to note there are many terms for the backslash such as backslant, backwhack, escape, reverse slant, whack and more.

A forward slash or more commonly just called slash (leans forward) is used to separate parts in a web address, such as this website: proprofs.com/discuss/... I don’t really know how a slash is used in C programming but I do know in some programming languages a slash is used as a dividing symbol.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.