Problem Statement
What is the difference between absolute and relative paths?
Explanation
An absolute path specifies the full location starting from the root directory (/). It’s independent of the current directory.
A relative path is defined in relation to the current directory and doesn’t start with a slash. It’s shorter but depends on context.
Practice Sets
This question appears in the following practice sets: