title: How do I find the location of the executable in C?
body: <p>Is there a way in C/C++ to find the location (full path) of the current executed program?</p>
  
  <p>(The problem with <code>argv[0]</code> is that it does not give the full path.)</p>