I wrote code with two storage class with a single variable. test result show that we can't we have a two storage with a single variable. anyone can explain Why can't we have a two storage with a single variable
Test resultCode:#include <stdio.h>
void fun ()
{
static extern x = 0;
x++;
printf(" x = %d ", x);
}
int main()
{
fun();
return 0;
}
Code:multiple storage classes in declaration specifiers static extern x = 0;
^~~~~~