void ABCD()
{
if (a>1){/*do something*/;}
else {EFGH();}
}
void EFGH() // function definition
{
}
This case may close.
Best regards.
ezflyr
Joined: 25 Oct 2010 Posts: 1019 Location: Tewksbury, MA
Posted: Tue Sep 02, 2014 1:20 pm
Hi,
Another solution would be to simply move the EFGH() function above the ABCD() function. During compile, the EFGH() reference would have already be resolved by the compiler, so the 'Unidentified Error' problem would not be an issue. IOW, it's possible to structure a 'C' program entirely without 'Function Prototypes', but some may consider that poor form? Your mileage may vary!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum