Type the code in codeplayground and run it to see the output yourself.
Always ask why the output is what it is, not what is the output.
If possible also mention your understanding of some concept, so that if you are wrong someone can correct you.
There is illegal initialization here if you compile it as C but this will work fine if compiled as C++ and I assume "prinf" instead of printf is a typing mistake.
It will give compile time error..bcoz dynamic initialization is not available in C language..
And as ~ swim ~ said try understanding yourself first..and I guess this is basics of C language so you might want to revise your C tutorial..
Error because static variables are created at the time of loading while the local variables are created when the scope comes inside curly braces. So firstly static variable y is created and till now there us no variable named x. So its raise an compile time error