C++ : Why does "auto" declare strings as const char* instead of std::string?

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



Duration: 1:23
0 views
0


C++ : Why does "auto" declare strings as const char* instead of std::string?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

I have a hidden feature that I promised to tell you about.
This is a YouTube's feature which works on Desktop.
First, Make sure the video is currently in playing mode.
Then, type the letters 'awesome' on the keyboard.
It will change your youtube progress bar into a flashing rainbow.

An introduction to myself in a few words,
Hi, my name is Delphi, nice to meet you.
I am at your disposal to help you with any questions you have.
C++ : Why does "auto" declare strings as const char* instead of std::string?
Please feel free to comment or chat with me for more detailed information.
If you have additional information or an answer to share, please comment below.
Your answer will be recognized and valued, and I will 'heart' it to show my appreciation.
std::string? const : char* Why declare as instead strings C++ "auto" of does




Other Videos By Hey Delphi


2023-05-01Android : How to make an application ignore screen orientation change?
2023-05-01SQL : How to select rows based on a list of values
2023-05-01C++ : What are practical uses of a protected constructor?
2023-05-01JavaScript : How can I get the status code from an HTTP error in Axios?
2023-05-01C# : Is it possible to trick this WindowsIdentity code into using the wrong user?
2023-05-01C++ : What is an event loop in Qt?
2023-05-01R : How to predict terms of merMod objects (lme4)?
2023-05-01Windows : How to use a batch file so that results remain visible on completion
2023-05-01C++ : Are virtual destructors inherited?
2023-05-01C# : How to set C# library path for an application?
2023-05-01C++ : Why does "auto" declare strings as const char* instead of std::string?
2023-05-01C++ : Why is a call to a C++ struct's function ambiguous if there are inherited members with differe
2023-05-01R : Is there a function to split a large dataframe into n smaller dataframes of equal size (by row)
2023-05-01Array : How to decode json data from post method for android app in php?
2023-05-01C++ : Why are signed/unsigned 8-bit integer types not supported by C++ random number generation?
2023-05-01Android : How to turn a portable SD card into internal storage via ADB command?
2023-05-01HTML : How to make inline expanding header with ellipsis overflow
2023-05-01jQuery : How do I skip the first iteration of an $.each()?
2023-05-01HTML : What HTML elements are not tabbable even with tabindex?
2023-05-01MySQL : How can a query multiply 2 cell for each row MySQL?
2023-05-01PHP : What exactly are late static bindings in PHP?