I am new here and I have a problem. It may have been discused in one of the 16911 other threads but I have limited time to search for it currently. My problem is that when I type the following I get an error:
Code:
int main
{
char bob[9];
bob = "hello";
}
I have tried variations on this and the only thing that works is:
Code:
int main
{
char bob[9];
bob[0] = 'h';
bob[1] = 'e';
bob[2] = 'l';
bob[3] = 'l';
bob[4] = 'o';
}
It may be that it is a Dev problem if so please tell me, I am getting tired of all the errors its causing when I forget