hi guys i m using gcc to compile certain programs.they get successfully compiled but fail to execute.Here is a sample code and the error
[tommy@tommy cprog]$ vi test.c
#include<stdio.h>
int main()
{
printf("hello"); /
return 0;
}
[tommy@tommy cprog]$ gcc test.c -o test.out
[tommy@tommy cprog]$ ./test.out
bash: ./test.out: Permission denied
a similar problem arises with codeblocks for the same program
the error is the same even when it is just main() and absence of return 0;
the problem exists also on c++.
i m using Fedora 15