Logo 
Search:

C Programming Articles

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

Example 3 of using function

Posted By: Toby Evans     Category: C Programming     Views: 1352

Example 3 of using function.

Code for Example 3 of using function in C Programming

#include <stdio.h>
int i =0;      //Global variable
main()
{
int j;        // local variable in mainvoid f1(void)  ;        
i =0;
printf("value of i in main %d\n",i);
f1();
printf("value of i after call%d\n",i);
}
void f1(void)
{
int k;        // local variable for f1.
i = 50;
}
  
Share: 


Didn't find what you were looking for? Find more on Example 3 of using function Or get search suggestion and latest updates.

Toby Evans
Toby Evans author of Example 3 of using function is from London, United Kingdom.
 
View All Articles

 
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!