c static variables

[ad_1]

c static variables
#include
int fun()
{
  static int count = 0;
  count++;
  return count;
}
  
int main()
{
  printf(
  printf(
  return 0;
}
c static variables
int fun(int i);
int main()
{
	int i, j;
	for(i=0;i<=5;i++)
	{
		j = fun(i);
	}
	printf(
}
fun(int i)
{
	static int count = 0;
	count = count + 1;
	return count;
}
Static Variable C
#include 
void display();

int main()
{
    display();
    display();
}
void display()
{
    static int c = 1;
    c += 5;
    printf(
}

[ad_2]

Please follow and like us:
Content Protection by DMCA.com