当前位置:网站首页>'when to use const char * and when to use const char []' - when to use const char * and when to use const char []
'when to use const char * and when to use const char []' - when to use const char * and when to use const char []
2022-07-02 22:44:00 【French red wine sweet】
problem :
"I know they are different, I know how they are different and I read all questions I could find regarding char*<\/code> vs char[]<\/code><\/i> I know they are different , I know how they are different , And I read all about char*<\/code> And char[]<\/code> The problem of <\/b><\/p>
But all those answers never tell when they should be used.<\/i> But none of these answers say when to use them .<\/b><\/p>
So my question is:<\/i> So my question is :<\/b><\/p>
When do you use<\/i> When do you use <\/b><\/p>
const char *text = "text";Solution :
Reference resources : https://stackoom.com/en/question/XA4d边栏推荐
- Les trois principaux points de douleur traités par servicemesh
- Share how to make professional hand drawn electronic maps
- Socket套接字C/S端流程
- #include errors detected. Please update your includePath.
- U++ 原始内存 学习笔记
- 开发者分享 | HLS, 巧用AXI_master总线接口指令的定制并提升数据带宽-面积换速度...
- Market Research - current situation and future development trend of sickle cell therapy Market
- NC50965 Largest Rectangle in a Histogram
- Tencent three sides: in the process of writing files, the process crashes, and will the file data be lost?
- New feature of go1.18: introduce new netip Network Library
猜你喜欢

"Actbert" Baidu & Sydney University of technology proposed actbert to learn the global and local video text representation, which is effective in five video text tasks!

对象与对象变量

Micro service gateway selection, please accept my knees!

Oracle-PL/SQL编程

Oracle PL / SQL programming
![[foreign journal] sleep and weight loss](/img/81/42dcfae19e72a0bc761cb7a40fe5d5.jpg)
[foreign journal] sleep and weight loss

Pointer and string
![Additional: [login information storage] and [login status verification]; (including: summarizing all the contents of [login information storage] and [login status verification] so far;)](/img/b7/0f543829b57cf2f2544efec4910c17.png)
Additional: [login information storage] and [login status verification]; (including: summarizing all the contents of [login information storage] and [login status verification] so far;)

Mathematical modeling -- graph and network models and methods (I)

Struct, bit segment, enumeration, union
随机推荐
Sql service intercepts string
Oracle cursor
NC50965 Largest Rectangle in a Histogram
[shutter] shutter page life cycle (initialization period | createstate | initstate | update period | build | destroy period | dispose)
Get off work on time! Episode 6 of Excel Collection - how to split and count document amounts
SimpleITK使用——4. 奇怪的問題
Radis:Linux上安装Redis(步骤)
Leetcode circular linked list (fast and slow pointer) code line by line interpretation
U++ learning notes - relaxation
php优化foreach中的sql查询
[shutter] shutter gesture interaction (small ball following the movement of fingers)
[QT] QT multithreading development - reentrancy and thread safety
Web side defense Guide
The failure rate is as high as 80%. What should we do about digital transformation?
New feature of go1.18: trylock, which has been tossed n times
SimpleITK使用——3. 常见操作
U++ 学习笔记 ----松弛
Dynamic memory allocation (malloc calloc realloc free)
PHP implements querying the data matching the date of birth according to the entered age
Les trois principaux points de douleur traités par servicemesh