AnsweredAssumed Answered

codewarrior compiler issue

Question asked by Vihaan Kumar on Sep 14, 2014
Latest reply on Sep 15, 2014 by Vihaan Kumar

Hi all,

 

i have found this strange problem with codewarrior compiler. My program is as follows

 

extern int i;

void test(int );

 

void main(void)

{

  test(i);

}

 

void test(int j)

{

  // do some logic

}

 

The program compiles without error. the program should have shown an error "i undefined". Can someone please explain me what is the solution for it?

 

Satya

Outcomes