Saturday, November 9, 2024

c question on pointer

 

void f()

{

    //static int a=5;

    int i;

    for(i=1;i<=4;i++)

    {

        static int a=10;

        printf("%d",a++);

    }

}


 

int main()

{

    printf("Hello World");

    f();

    return 0;

}


No comments:

Post a Comment