Array : Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=ItoMfC7pfbo



Duration: 1:30
0 views
0


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?




Other Videos By Hey Delphi


2023-05-01JavaScript : How to get an object's methods?
2023-05-01HTML : How to scrape inside div list using puppeteer
2023-05-01C# : How to make a specific Column Uneditable In datagridview?
2023-05-01Windows : How to compile and run xv6 on windows?
2023-05-01MySQL : How to test if a string is JSON or not?
2023-05-01Windows : Is there a time function its result is guaranteed to change every time is called?
2023-05-01Array : What is the best way to initialize the string array in c?
2023-05-01PYTHON : How to remove square bracket from pandas dataframe
2023-05-01Array : how to create a histogram in java
2023-05-01C++ : how to silence gcc warning against c++17 features?
2023-05-01Array : Why printf("%s",(char[]){'H','i','\0'}) works as printf("%s","Hi"), but printf("%s",(char*){
2023-05-01jQuery : How should I reference js on a "input" tag generated by "addChild" function?
2023-05-01HTML : How does Wired magazine achieve this thick underline link effect?
2023-05-01Array : How to populate an array with incrementally increasing values Ruby
2023-05-01Array : What's the difference among array, &array and &array[0] in C language?
2023-05-01C++ : How can I return a scoped lock?
2023-05-01jQuery : How can I find all text nodes between two element nodes with JavaScript/jQuery?
2023-05-01Windows : Is there a Windows API to programmatically Cut / Copy / Paste files via Windows Explorer?
2023-05-01Array : How to convert Java "Arrays.copyOfRange" function to C#?
2023-05-01Android : How to achieve real time video editing on Android?
2023-05-01SQL : How to Query Database Name in Oracle SQL Developer?