Pleaase reply with sol as asp

Fille 1:
#include<stdio.h>
extern int i;

extern int j;
void next(void);
int main()
{
++i;
printf("%d",i);
next();
getchar();
}
int i=3;
void next()
{
     ++i;
     printf("%d",i);
     printf("%d",j);
    other();
     }
File 2:
extern int i;

void other()
{
     ++i;
printf("%d",i)'
}

How cum file 1 knows what is other();as we havnet define with
extern void other();
it should be error????
but when i include the statemetn extern void other,then also it shows??
pls provide me o/p of this questiona nd also tell how use use variable of
one file in other as simply writing extern in a is not accesing global a of
other file....

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to