hello,
I was writing a simple hello world program in C, i have compiling the program in terminal using the code
$ gcc project.c
i got the file a.out
now i want to run it i use the code
$ a.out
but i get this error:
-bash: a.out: command not found
here is the source code for hello world program:
I was writing a simple hello world program in C, i have compiling the program in terminal using the code
$ gcc project.c
i got the file a.out
now i want to run it i use the code
$ a.out
but i get this error:
-bash: a.out: command not found
here is the source code for hello world program:
Code:
#include <stdio.h>
int main (void)
{
printf ("Programming is fun.\n");
return 0;
}