Why does printf("%s",(char[]){'H','i','\0'}) works same as printf("%s","Hi"), AND why printf("%s",(char*){'A','B','\0'}); fails?
Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){'H','i','\0'}); fails?