0 votes 0 votes int main()//assuming that the variable 'i' is not defined in any other file, { extern int i; i=10; printf("%d",i); return 0; } A.10 B.0 C.COMPILER ERROR D.linker error deepak_yadav asked Dec 17, 2016 • edited Dec 17, 2016 by srestha deepak_yadav 201 views answer comment Share Follow See all 0 reply Please log in or register to add a comment.
1 votes 1 votes It will give linker error. 'extern' will try to access x value outside of main(). But x declared inside main(). So, unable to access it. So, give linker error. srestha answered Dec 17, 2016 srestha comment Share Follow See all 0 reply Please log in or register to add a comment.