Array : Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){
Array : Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){'H','i','\0'}); fails?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"
Here's a secret feature that I promised to disclose to you.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Next, enter the letters 'awesome' on your keyboard.
It will change your youtube progress bar into a flashing rainbow.
Here's a brief description of who I am,
Salutations, my name is Delphi.
I can be of service in providing you with answers to your inquiries.
Array : Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){'H','i','\0'}); fails?
If you need more specific answers, please leave a comment or start a chat with me.
We appreciate your participation, so please feel free to comment below with your answer or insights.
Your answer will be acknowledged and appreciated, and I will 'heart' it as a sign of gratitude.
but Array Why as printf("%s",(char*){'H','i','\0'}); printf("%s",(char[]){'H','i','\0'}) printf("%s","Hi"), : works fails?