we can use "system" function to call system command:
int system(const char *command);
#include <stdlib.h> system("pwd");