Predict the output of following code
#include <stdio.h>
    void main()
    {
        y();
        y();
    }
    void y()
    {
        static int u = 2;
        --u;
        printf("%d", u);
}


Posted on by