Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » Homework HelpRSS Feeds

Program that displays use of extern variable

Posted By: David Evans     Category: C Programming     Views: 2722

Write a program that displays use of extern variable.

Code for Program that displays use of extern variable in C Programming

#include <stdio.h>            \\ A
#include <d:\cbook\storage\f1.cpp>    \\ B
externint i;                \\ C
main()
{
i =0;                        \\ D
printf("value of i %d\n",i);
}

\\ Program in file f1.cpp

int i =7;                    \\ E
  
Share: 


Didn't find what you were looking for? Find more on Program that displays use of extern variable Or get search suggestion and latest updates.

David Evans
David Evans author of Program that displays use of extern variable is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

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

 
No Comment Found, Be the First to post comment!