Visual Studio 6.0 C/C++ Bug ?
Hello
Let me introduse problem, this pice of code:
char *var_a = "b";
int main ()
{
char *var_b = "a";
var_a[0] = ''A'';
var_b[0] = ''B'';
return (0);
}
generates Acces Valiation when compiled with Visual 6.0 C/C++.
When I compile it on Borland 5.1 C/C++ it works corect.
Prabobly Visual C is puting this pointers in code memory (referenced by [CS] Descryptor).
Is there any switch to force alocating data in data memory ?
Maybe there is other reason why it is not workin corectly only when compiled with Visual C.
"Never use brutal force, always HAMMER !!!"
do this insted:
char var_a[] = "123456789";
becoz therfore you can now altar it.
hallelooya and praze jesus!
char var_a[] = "123456789";
becoz therfore you can now altar it.
hallelooya and praze jesus!
estor i am compeled to note that your spelling is atrosious. how cvan you expect to become a good programer when your gramar skills are so obsenely limited?
quote:Original post by YodaTheCoda
estor i am compeled to note that your spelling is atrosious. how cvan you expect to become a good programer when your gramar skills are so obsenely limited?
Sorry... I understand what im reading, but I have problems with writeing. But all the time I''m learning. 8)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement