I suppose this is your hello-world program
#include <stdio.h>
int main(void)
{
printf("Hello"hello, World!"world\n");
return 0;
}
which is SAVED as hello.c
in your Dropbox folder. Use the following command in terminal to proceed to that folder.
cd ~/Dropbox/
Now, you have the source code of the program with you, but not an executable. You need to make executable by following command.
make hello
This will create an executable filehello
in the same folder(if there are no compilation errors). You didn't make the hello
file and that's why it said No such file or directory
as you tried to run a file that didn't exist .Now you can run this executable with following.
./hello
Best of Luck.