Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 141

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 65

Answer:

main()
{
extern i;
printf("%d\n",i);
{
int i=20;
printf("%d\n",i);
}
}


Answer:
Linker Error : Unresolved external symbol i


Explanation:
The identifier i is available in the inner block and so using extern has no use in resolving it.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 141 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: