I think this question is not a duplicate of other questions on the site, because others don't give uses of this feature in C.
I am interested in knowing why this C program is not giving a compile time error. Also why is this statement valid. What are its uses?
int main(int argc, char const *argv[])
{
int k = k;
return 0;
}
There is no k
in the global scope. It looks as if scope of k
started just after the assignment operator. I am confused.