I'm writing my first-ever program and I've hit an immediate roadblock. I'm just trying to get some simple lines of text on the screen, but when I compile and run the program I get:
/Users/myname/Desktop/program -bash: /Users/myname/Desktop/program: Permission denied name-mbp:~ myname$
I'm using a Mac, and don't have much familiarity with the command line. Is there something I'm doing wrong? Here's the program:
/* Prints a message on the screen */
#include <stdio.h>
main ()
{
printf("Just one small step for coders. One giant leap for") ;
printf(" programmers!\n") ;
return 0;
}
Any thoughts or feedback would be truly appreciated. Thanks in advance.