Skip to main content
added 1 character in body
Source Link
sinister
  • 3.5k
  • 2
  • 20
  • 37

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.

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("Hello, World!");
     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.

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("hello, 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.

added 89 characters in body
Source Link
sinister
  • 3.5k
  • 2
  • 20
  • 37

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("Hello, World!");
     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 a an executable filehello.exe in the same folder(if there are no compilation errors). NowYou 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.

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("Hello, World!");
     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 a hello.exe in the same folder(if there are no compilation errors). Now you can run this executable with following.

./hello

Best of Luck.

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("Hello, World!");
     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.

Source Link
sinister
  • 3.5k
  • 2
  • 20
  • 37

I suppose this is your hello-world program

#include <stdio.h>
int main(void)
{
     printf("Hello, World!");
     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 a hello.exe in the same folder(if there are no compilation errors). Now you can run this executable with following.

./hello

Best of Luck.