User Profile
Collapse
-
thankyou bafta i am using a gnu cross compiler when i got this error ,but when the same code is ported to borland bc5 it works correctly...cou ld it be compiler optimisation in bc5 that is avoiding this out of bounds write into array... -
Scope error
void func1(void)
{
strans obj;\\\\struct
unsigned int i,ix;
ix=1;
if (a>0)\\\\\\\\\\ \\\a is global int
ix=a;
for (i=ix;i<5;i++)
{
func2(i,obj);
\\\\\\\\\\\\\\\ \\\\\\\i value here i =1 ok
func3(obj);
\\\\\\\\\\\\\\\ \\\\\\\ func3 ok
\\\\\\\\\\\\\bu t after this func3 call i value===0\\\\\e rror
\\not making any change to or passing address...
No activity results to display
Show More
Leave a comment: