B
batista
Hi,
I am getting the following exception
First-chance exception in TestMansoor.exe: 0xC0000005: Access Violation
When i run the following code
1 int main(void)
2 {
3 char* str1 = "MA";
4 char s = str1[0];
5 str1[0] = 'r';
6 return 0;
7 }
i'm getting exception on line 5. Why?
Bye.
I am getting the following exception
First-chance exception in TestMansoor.exe: 0xC0000005: Access Violation
When i run the following code
1 int main(void)
2 {
3 char* str1 = "MA";
4 char s = str1[0];
5 str1[0] = 'r';
6 return 0;
7 }
i'm getting exception on line 5. Why?
Bye.