The output of this code is
char *str="char *str=%c%s%c;main(){printf(str,34,str,34);}";main(){printf(str,34,str,34);}
I don't know how this is happening. Please explain.
#include<stdio.h>
char *str = "char *str=%c%s%c;main(){printf(str,34,str,34);}";
int main()
{
printf(str,34,str,34);
return 1;
}