#include <iostream>#include <unistd.h>using namespace std; int main() { char* path = getcwd(NULL, 0); cout << path << endl; return 0;}
Standard input is empty
/home/hPiG3C
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!