terminal permission denied with c program
Hi,
I'm trying to run a hello world c program by using code blocks but i got the message "permission denied".
i tried lot of solutions but without hope. Therefore, could someone help me out?.
these is my program through code blocks
#include<stdio.h>
int main()
{
printf("hello world”)
}
and after running the program the message appeared in the terminal
Last login: Tue Sep 22 17:02:17 on ttys000
sams-MacBook-Pro:~ samkajjo$ /Users/samkajjo/Desktop/hello
-bash: /Users/samkajjo/Desktop/hello: Permission denied
sams-MacBook-Pro:~ samkajjo$
Mac Pro, OS X Yosemite (10.10.5)