Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

ILLUSTRATION OF WORKING OF auto VARIABLES

Posted By: Amelia Brown     Category: C Programming     Views: 1458

ILLUSTRATION OF WORKING OF auto VARIABLES.

Code for ILLUSTRATION OF WORKING OF auto VARIABLES in C Programming

void function1(void);
   void function2(void);                                                               
   main( )                                                     
   {
        int m = 1000;                                          
        function2();                                           
                                                               
        printf("%d\n",m);    /* Third output */
} void function1(void) { int m = 10; printf("%d\n",m); /* First output */
} void function2(void) { int m = 100; function1(); printf("%d\n",m); /* Second output */
} Output 10 100 1000
  
Share: 


Didn't find what you were looking for? Find more on ILLUSTRATION OF WORKING OF auto VARIABLES Or get search suggestion and latest updates.

Amelia Brown
Amelia Brown author of ILLUSTRATION OF WORKING OF auto VARIABLES 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!