Join ExamsbookAnswer :
What would be the output of the following program?
main()
{
extern int i;
i = 20;
printf( "%d", sizeof(i) );
}5
Q: What would be the output of the following program? main() { extern int i; i = 20; printf( "%d", sizeof(i) ); }
- Show AnswerHide Answer
- Workspace
Answer :
Explanation :
extern int i is a declaration and not a definition, hence Error occured.