User Profile

Collapse

Profile Sidebar

Collapse
avi05
avi05
Last Activity: Sep 28 '09, 05:53 AM
Joined: Sep 27 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • avi05
    replied to Scope error
    in C
    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...
    See more | Go to post

    Leave a comment:


  • avi05
    started a topic Scope error
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...