19.6.20

c static storage class


STATIC STORAGE CLASS :
void fun()
{

    static int a=10;
    printf("%d\n",a);
    a++;

}
void main()
{

    fun();
    fun();
    fun();
    fun();
}
OUTPUT:
10
11
12
13

No comments:

Post a Comment

JAVA program pattern 2

import java.util.Scanner; public class pattern3 { public static void main(String args[]) { int i,j; Scanner sc=new Scanner(System.in); Syste...