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)

Posted on Sep 22, 2015 2:23 PM

Reply
2 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

terminal permission denied with c program

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.