I am new to C programming. When I tried to compile it, I got an a.out file (I don't know where it came from) and it somehow disappeared. What is happening here?
Here are the commands I ran:
$ gcc hello.c
$ ls
a.out hello hello.c
$ a.out
a.out: command not found
$ gcc a.out
a.out: file not recognized: File truncated
collect2: error: ld returned 1 exit status
$ ./hello
Hello, world!$ ./a.out
bash: a.out: No such file or directory
$ ls
hello hello.c