Answers for "relative path or absolute path"

18

relative path

/   = Root directory
   .   = This location
   ..  = Up a directory
   ./  = Current directory
   ../ = Parent of current directory
   ../../ = Two directories backwards
Posted by: Guest on March-26-2020
2

difference between absolute path and relative path

The Absolute path tells us the path of the current file from the root directory.
The Relative path tells us the path of the current file related to the current directory

For example you have a project folder named cryptocurrencyApp. which contains an image named currency.png.
The relative path for img is gonna be /image/currency.png , and 
Its absolute path is gonna be C:\<All your parent folders>/cryptocurrencyApp/image/currency.png
Posted by: Guest on January-15-2022

Browse Popular Code Answers by Language