Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: why default directories(. & ..)  (Read 3984 times)

0 Members and 1 Guest are viewing this topic.

Manmeet Kaur

  • Guest
why default directories(. & ..)
« on: August 25, 2004, 10:08:56 PM »
1. Why are default directories . and .. included in DOS?
2. If three files with same name(ab) but extensions as .com, .bat and .exe are present in the same directory, then if we write at the prompt
                                          c:\>ab
then which file will execute first?
3. How can a same c++ compiler run the c++ programs as well as c?

yeah right

  • Guest
Re: why default directories(. & ..)
« Reply #1 on: August 26, 2004, 12:47:05 PM »
1.  "." is current directory and ".." is the parent of the current directory

2.  Not 100% sure but i believe that the .exe file has the highest priority

3.  MS visual c++ runs both.   Infact a lot of c++ compilers can compile c code.