#include<stdio.h>
int fun()
{
static int count = 0;
count++;
return count;
}
int main()
{
printf("%d ", fun()); // prints 1
printf("%d ", fun()); // prints 2
return 0;
}
#include <stdio.h>
void display();
int main()
{
display();
display();
}
void display()
{
static int c = 1;
c += 5;
printf("%d ",c);
}
int fun(int i);
int main()
{
int i, j;
for(i=0;i<=5;i++)
{
j = fun(i);
}
printf("%d", j);
}
fun(int i)
{
static int count = 0;
count = count + 1;
return count;
}
static int i;
Code Example |
---|
C :: c random array |
C :: arduino millis |
C :: malloc in c |
C :: union in c |
C :: c read csv |
C :: fopen function in c |
C :: Array Input/Output in C |
C :: function for calculate the average and standard deviation of table |
C :: C Passing string to a Function |
C :: callback c++ c |
C :: remove axis numpy array |
C :: ruby find object in array by attribute |
C :: initializa 2d array c |
C :: hello word in c |
C :: star pattern in c |
C :: HOW TO ADD FORM IN BOOTSTRAp |
C :: fgets c |
C :: quick sort c |
C :: malloc |
C :: c change value of const |
C :: apt-mark remove hold |
C :: subrayar elementos css |
C :: c structure with pointer |
C :: gitlab ci heroku |
C :: C special character display |
C :: c calling a function |
C :: deleting a word with copy fuction c code |
C :: Print mark-sheet of students |
C :: how to find adam number uasing loop in C |
C :: How to declare a string? |