fork download
  1. #include<stdio.h>
  2. void incre ( );
  3. main( )
  4. {
  5. incre( );
  6. incre( );
  7. }
  8. void incre( )
  9. {
  10. int n = 10;
  11. static int p = 0 ; /*p is Static Variable*/
  12. printf(“N = %d Static Variable = %d\n”, n, p);
  13. n++;
  14. p++;
  15. }
  16.  
Success #stdin #stdout 0.02s 25984KB
stdin
Standard input is empty
stdout
#include<stdio.h>
void incre ( );
main( )
{
incre( );
incre( );
}
void incre( )
{
int n = 10;
static int p = 0 ; /*p is Static Variable*/
printf(“N = %d Static Variable = %d\n”, n, p);
n++;
p++;
}