Hi I have written two C programs that look almost the same. One will run but the other will not run by itself.
This is how I run them:
Code:
$ ex1
This is a C program.
And here is the other:
Code:
$ ex2
bash: /home/james/bin/ex2: cannot execute binary file
Here is ex1:
Code:
// This is a comment.
#include <stdio.h>
int main()
{
puts("This is a C program\n");
return 0;
}
Here is ex2:
Code:
#include <stdio.h>
int main()
{
puts("This is another program\n");
return 0;
}